Skip to content

Commit 32878c1

Browse files
committed
fix ci
1 parent 5954420 commit 32878c1

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,23 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
CARGO_TERM_COLOR: always
11+
912
jobs:
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

0 commit comments

Comments
 (0)