Skip to content

Commit 454f80c

Browse files
committed
ci: skip build on clippy
1 parent 20b7d61 commit 454f80c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build-and-test-rust.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
source /home/runner/.bashrc
3232
~/.sp1/bin/sp1up
3333
34+
- name: Install risc0 toolchain
35+
run: |
36+
curl -L https://risczero.com/install | bash
37+
source /home/runner/.bashrc
38+
/home/runner/.risc0/bin/rzup install
39+
3440
- name: Cache Rust dependencies
3541
uses: actions/cache@v3
3642
with:
@@ -70,7 +76,8 @@ jobs:
7076
- name: Run Clippy on AggregationMode
7177
run: |
7278
cd aggregation_mode
73-
cargo clippy --all -- -D warnings
79+
# We need to skip the build as clippy does not support the riscv32im-risc0-zkvm-elf target
80+
RISC0_SKIP_BUILD=1 cargo clippy --all -- -D warnings
7481
7582
test:
7683
runs-on: aligned-runner
@@ -91,9 +98,9 @@ jobs:
9198
9299
- name: Install risc0 toolchain
93100
run: |
94-
curl -L https://risczero.com/install | bash
95-
source /home/runner/.bashrc
96-
rzup install
101+
curl -L https://risczero.com/install | bash
102+
source /home/runner/.bashrc
103+
/home/runner/.risc0/bin/rzup install
97104
98105
- name: Cache Rust dependencies
99106
uses: actions/cache@v3

0 commit comments

Comments
 (0)