Skip to content

Commit 8350e0b

Browse files
committed
Rust CI: run cargo check-all-features instead of cargo check
1 parent 63d3de2 commit 8350e0b

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/rust_ci.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ jobs:
4141
save-if: false
4242
shared-key: base
4343

44-
- name: Install Cargo tools
45-
run: |
46-
rustup component add rustfmt clippy
47-
48-
- name: Check that cargo lockfile is up to date
49-
run: |
50-
cargo check --locked --all-targets
51-
5244
# Note: ironfish-zkp is does not need this due to different licensing
5345
- name: Check for license headers for ironfish-rust
5446
run: ./ci/lintHeaders.sh ./ironfish-rust/src *.rs
@@ -64,6 +56,26 @@ jobs:
6456
run: |
6557
cargo clippy --all-targets --all-features -- -D warnings
6658
59+
cargo_check:
60+
name: Check Rust
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v4
64+
65+
- name: Cache Rust
66+
uses: Swatinem/rust-cache@v2
67+
with:
68+
save-if: false
69+
shared-key: base
70+
71+
- name: Install cargo-all-features
72+
run: |
73+
cargo install --locked cargo-all-features
74+
75+
- name: Check that cargo lockfile is up to date
76+
run: |
77+
cargo check-all-features --locked --all-targets
78+
6779
cargo_vet:
6880
name: Vet Dependencies
6981
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)