File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed
Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ fmt :
12+ name : rustfmt
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions-rust-lang/setup-rust-toolchain@v1
17+ with :
18+ toolchain : stable
19+ components : rustfmt
20+ - run : cargo fmt --all -- --check
21+
22+ clippy :
23+ name : clippy
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v4
27+ - uses : actions-rust-lang/setup-rust-toolchain@v1
28+ with :
29+ toolchain : stable
30+ components : clippy
31+ - run : cargo clippy --workspace --all-targets --all-features -- -D warnings
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ test :
12+ name : test ${{ matrix.toolchain }} (${{ matrix.os }})
13+ runs-on : ${{ matrix.runner }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ toolchain : [1.90.0, stable]
18+ os : [linux-x64, linux-arm64, macos-x64, macos-arm64]
19+ include :
20+ - os : linux-x64
21+ runner : ubuntu-latest
22+ target : x86_64-unknown-linux-gnu
23+ - os : linux-arm64
24+ runner : ubuntu-24.04-arm
25+ target : aarch64-unknown-linux-gnu
26+ - os : macos-x64
27+ runner : macos-15-intel
28+ target : x86_64-apple-darwin
29+ - os : macos-arm64
30+ runner : macos-latest
31+ target : aarch64-apple-darwin
32+ steps :
33+ - uses : actions/checkout@v4
34+ - uses : actions-rust-lang/setup-rust-toolchain@v1
35+ with :
36+ toolchain : ${{ matrix.toolchain }}
37+ target : ${{ matrix.target }}
38+ - run : cargo test --workspace --all-targets --all-features --target ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments