File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Rust CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ ci :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Install Rust toolchain
17+ uses : dtolnay/rust-toolchain@stable
18+ with :
19+ components : rustfmt, clippy
20+
21+ - name : Cache cargo registry
22+ uses : actions/cache@v4
23+ with :
24+ path : |
25+ ~/.cargo/registry
26+ ~/.cargo/git
27+ target
28+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
29+ restore-keys : ${{ runner.os }}-cargo-
30+
31+ - name : Cargo check
32+ run : cargo check --all-targets
33+
34+ - name : Cargo fmt (check)
35+ run : cargo fmt --all -- --check
36+
37+ - name : Cargo clippy
38+ run : cargo clippy --all-targets -- -D warnings
You can’t perform that action at this time.
0 commit comments