File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ main ]
88
9+ env :
10+ CARGO_TERM_COLOR : always
11+
912jobs :
10- build-and-lint :
13+ build_and_test :
14+ name : Rust project - latest
1115 runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ toolchain :
19+ - stable
20+ - beta
21+ - nightly
1222 steps :
1323 - uses : actions/checkout@v4
14- - name : Set up Rust
15- uses : actions/setup-rust@v1
16- with :
17- rust-version : stable
18- - name : Check formatting
19- run : cargo fmt --all -- --check
20- - name : Build
21- run : cargo build --release
22- - name : Run Clippy (deny warnings)
23- run : cargo clippy -- -D warnings
24+ - run : rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
25+ - run : cargo fmt --all -- --check
26+ - run : cargo clippy -- -D warnings
27+ - run : cargo build --release --verbose
28+ - run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments