1515jobs :
1616 build :
1717 runs-on : aligned-runner
18+ env :
19+ CARGO_INCREMENTAL : 0
1820
1921 steps :
2022 - uses : actions/checkout@v4
@@ -26,12 +28,11 @@ jobs:
2628 components : rustfmt, clippy
2729 override : true
2830
29- # Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
3031 - name : Install sp1 toolchain
3132 run : |
3233 curl -L https://sp1.succinct.xyz | bash
3334 source /home/runner/.bashrc
34- ~/.sp1/bin/sp1up
35+ ~/.sp1/bin/sp1up
3536
3637 - name : Install risc0 toolchain
3738 run : |
@@ -45,11 +46,13 @@ jobs:
4546 path : |
4647 ~/.cargo/registry
4748 ~/.cargo/git
48- crates/target
4949 key : ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
5050 restore-keys : |
5151 ${{ runner.os }}-rust-
5252
53+ - name : Clean build dir
54+ run : rm -rf crates/target
55+
5356 - name : Check formatting
5457 run : |
5558 cd crates
@@ -63,40 +66,40 @@ jobs:
6366 - name : Build Batcher
6467 run : |
6568 cd crates
66- cargo build --all
69+ cargo build --all -vv
6770
6871 - name : Check formatting of AggregationMode
6972 run : |
7073 cd aggregation_mode
7174 cargo fmt --all -- --check
7275
73- - name : Build AggregationMode # We build before clippy to generate the ELF
76+ - name : Build AggregationMode
7477 run : |
7578 cd aggregation_mode
76- cargo build --all
79+ cargo build --all -vv
7780
7881 - name : Run Clippy on AggregationMode
7982 run : |
8083 cd aggregation_mode
81- # We need to skip the build as clippy does not support the riscv32im-risc0-zkvm-elf target
8284 RISC0_SKIP_BUILD=1 cargo clippy --all -- -D warnings
8385
8486 test :
8587 runs-on : aligned-runner
8688 needs : build
89+ env :
90+ CARGO_INCREMENTAL : 0
91+
8792 steps :
88- - name : Checkout code
89- uses : actions/checkout@v4
93+ - uses : actions/checkout@v4
9094
9195 - name : foundry-toolchain
9296 uses :
foundry-rs/[email protected] 9397
94- # Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
9598 - name : Install sp1 toolchain
9699 run : |
97100 curl -L https://sp1.succinct.xyz | bash
98101 source /home/runner/.bashrc
99- ~/.sp1/bin/sp1up
102+ ~/.sp1/bin/sp1up
100103
101104 - name : Install risc0 toolchain
102105 run : |
@@ -110,17 +113,19 @@ jobs:
110113 path : |
111114 ~/.cargo/registry
112115 ~/.cargo/git
113- crates/target
114116 key : ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
115117 restore-keys : |
116118 ${{ runner.os }}-rust-
117119
120+ - name : Clean build dir
121+ run : rm -rf crates/target
122+
118123 - name : Run Batcher tests
119124 run : |
120125 cd crates
121- cargo test --all
126+ cargo test --all -vv
122127
123128 - name : Run AggregationMode tests
124129 run : |
125130 cd aggregation_mode
126- cargo test --all
131+ cargo test --all -vv
0 commit comments