|
13 | 13 | - ".github/workflows/build-and-test-rust.yml" |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - build: |
| 16 | + build-and-test: |
17 | 17 | runs-on: aligned-runner |
18 | 18 |
|
19 | 19 | steps: |
|
26 | 26 | components: rustfmt, clippy |
27 | 27 | override: true |
28 | 28 |
|
| 29 | + - name: foundry-toolchain |
| 30 | + uses: foundry-rs/foundry-toolchain@v1.2.0 |
| 31 | + |
29 | 32 | # Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65 |
30 | 33 | - name: Install sp1 toolchain |
31 | 34 | run: | |
@@ -82,54 +85,13 @@ jobs: |
82 | 85 | # We need to skip the build as clippy does not support the riscv32im-risc0-zkvm-elf target |
83 | 86 | RISC0_SKIP_BUILD=1 cargo clippy --all -- -D warnings |
84 | 87 |
|
85 | | - test: |
86 | | - runs-on: aligned-runner |
87 | | - needs: build |
88 | | - steps: |
89 | | - - name: Checkout code |
90 | | - uses: actions/checkout@v4 |
91 | | - |
92 | | - - name: Set up Rust |
93 | | - uses: actions-rs/toolchain@v1 |
94 | | - with: |
95 | | - toolchain: 1.88.0 |
96 | | - components: rustfmt, clippy |
97 | | - override: true |
98 | | - |
99 | | - - name: foundry-toolchain |
100 | | - uses: foundry-rs/foundry-toolchain@v1.2.0 |
101 | | - |
102 | | - # Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65 |
103 | | - - name: Install sp1 toolchain |
104 | | - run: | |
105 | | - curl -L https://sp1.succinct.xyz | bash |
106 | | - source /home/runner/.bashrc |
107 | | - ~/.sp1/bin/sp1up |
108 | | -
|
109 | | - - name: Install risc0 toolchain |
110 | | - run: | |
111 | | - curl -L https://risczero.com/install | bash |
112 | | - source ~/.bashrc |
113 | | - ~/.risc0/bin/rzup install |
114 | | -
|
115 | | - - name: Cache Rust dependencies |
116 | | - uses: actions/cache@v3 |
117 | | - with: |
118 | | - path: | |
119 | | - ~/.cargo/registry |
120 | | - ~/.cargo/git |
121 | | - crates/target |
122 | | - key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }} |
123 | | - restore-keys: | |
124 | | - ${{ runner.os }}-rust- |
125 | | -
|
126 | 88 | - name: Run Batcher tests |
127 | 89 | run: | |
128 | 90 | cd crates |
129 | 91 | cargo test --all |
130 | 92 |
|
131 | 93 | - name: Run AggregationMode tests |
132 | 94 | run: | |
133 | | - cd aggregation_mode/proof_aggregator && cargo test |
| 95 | + cd aggregation_mode/proof_aggregator && SKIP_AGG_PROGRAMS_BUILD=1 cargo test |
134 | 96 | cd ../gateway && cargo test |
135 | 97 | cd ../payments_poller && cargo test |
0 commit comments