File tree Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Original file line number Diff line number Diff line change 1- name : Rust CI
1+ name : Rust CI (Light)
22
33on :
44 push :
77 branches : [ main ]
88
99jobs :
10- ci :
10+ build :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Checkout
13+ - name : Checkout repository
1414 uses : actions/checkout@v4
1515
16- - name : Install Rust toolchain
17- uses : dtolnay/rust- toolchain@stable
16+ - name : Install Rust
17+ uses : actions-rs/ toolchain@v1
1818 with :
19- components : rustfmt, clippy
19+ toolchain : stable
20+ override : true
21+ components : clippy
2022
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
23+ - name : Check compilation
24+ run : cargo check
3325
34- - name : Cargo fmt (check)
35- run : cargo fmt --all -- --check
26+ - name : Build release binary
27+ run : cargo build --release
3628
37- - name : Cargo clippy
38- run : cargo clippy --all-targets -- -D warnings
29+ - name : Clippy (non-blocking)
30+ run : cargo clippy --all-targets || true
You can’t perform that action at this time.
0 commit comments