-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 merge build and lint, add debian package lint
- Loading branch information
Showing
4 changed files
with
54 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build debian package | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
workflow_call: | ||
|
||
jobs: | ||
lint-markdown: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Lint markdown files | ||
uses: avto-dev/[email protected] | ||
with: | ||
args: "**/*.md" | ||
|
||
lint-yaml: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Lint yaml files | ||
uses: ibiqlik/[email protected] | ||
|
||
build-package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y libx11-dev xorg-dev libxdo-dev | ||
|
||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cargo lint | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Cargo test | ||
run: cargo test | ||
|
||
- name: Cargo build | ||
run: cargo build --release | ||
|
||
- name: Create and lint debian package | ||
run: ./debian-build.sh --lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters