File tree Expand file tree Collapse file tree 2 files changed +53
-22
lines changed
Expand file tree Collapse file tree 2 files changed +53
-22
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ env :
12+ RUST_BACKTRACE : 1
13+ RUSTFLAGS : -Dwarnings
14+
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+ cancel-in-progress : true
18+
19+ jobs :
20+ lint :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ - uses : dtolnay/rust-toolchain@stable
25+ with :
26+ components : rustfmt, clippy
27+ - uses : swatinem/rust-cache@v2
28+ - name : cargo fmt
29+ run : cargo fmt --all -- --check
30+ - name : cargo clippy
31+ run : cargo clippy --workspace --all-targets
32+
33+ test :
34+ runs-on : ${{ matrix.os }}
35+ strategy :
36+ fail-fast : false
37+ matrix :
38+ os : [ubuntu-latest, macos-latest, windows-latest]
39+ steps :
40+ - uses : actions/checkout@v4
41+ - uses : dtolnay/rust-toolchain@stable
42+ - uses : swatinem/rust-cache@v2
43+ - name : cargo test
44+ run : cargo test --workspace --all-targets
45+
46+ check-msrv :
47+ runs-on : ubuntu-latest
48+ steps :
49+ - uses : actions/checkout@v4
50+ 51+ - uses : swatinem/rust-cache@v2
52+ - name : cargo check
53+ run : cargo check --workspace
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments