-
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 branch 'main' into 7-server-argument-parsing
- Loading branch information
Showing
14 changed files
with
713 additions
and
10 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
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,50 @@ | ||
name: "Rust ci" | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
paths: | ||
- 'ai/**' | ||
- 'Cargo.*' | ||
- build.rs | ||
pull_request: | ||
branches: [ main, master ] | ||
paths: | ||
- 'ai/**' | ||
- 'Cargo.*' | ||
- build.rs | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: --deny warnings | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
rust: [stable] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install ${{ matrix.rust }} --profile minimal | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install cargo-hack | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: cargo install cargo-hack | ||
|
||
- name: Run rustfmt checks | ||
run: cargo fmt --check | ||
|
||
- name: Run clippy lints | ||
run: cargo clippy -- -D warnings | ||
|
||
- name: Run unit tests | ||
run: cargo hack test |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ zappy_gui | |
coding-style-reports.log | ||
.cache | ||
compile_commands.json | ||
.clang-format | ||
.clang-format |
Empty file.
Oops, something went wrong.