-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f27725
commit a1e1241
Showing
5 changed files
with
67 additions
and
12 deletions.
There are no files selected for viewing
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,46 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
paths: | ||
- 'src/**' | ||
- 'Cargo.toml' | ||
- 'Cargo.lock' | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- 'Cargo.toml' | ||
- 'Cargo.lock' | ||
|
||
# Common environment variables | ||
env: | ||
RUSTFLAGS: "-C debuginfo=1" | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: "1" | ||
LOCK_FILE: Cargo.lock | ||
|
||
jobs: | ||
style-check: | ||
name: style-check | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy, rustfmt | ||
- name: Run Style Check | ||
run: | | ||
make ci | ||
- name: Run | ||
run: | | ||
make run | ||
- name: Check git status | ||
run: | | ||
git diff --exit-code |
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,11 @@ | ||
|
||
ci: fmt clippy | ||
|
||
clippy: | ||
cargo clippy --all-targets --all-features | ||
|
||
fmt: | ||
cargo fmt -- --check | ||
|
||
run: | ||
cargo run --release |
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
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
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