1717 MINA_PANIC_ON_BUG : true
1818 CARGO_INCREMENTAL : 1
1919 RUSTFLAGS : " -C overflow-checks=off -C debug-assertions=off"
20+ RUST_STABLE_VERSION : " 1.84"
21+ RUST_NIGHTLY_VERSION : " nightly"
22+ OCAML_VERSION : " 4.14.2"
23+ CACHE_VERSION : " v0"
2024
2125concurrency :
2226 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -31,17 +35,14 @@ jobs:
3135 - name : Setup Rust
3236 uses : ./.github/actions/setup-rust
3337 with :
34- toolchain : 1.84
38+ toolchain : ${{ env.RUST_STABLE_VERSION }}
3539 enable-cache : false
3640 - name : Clean cargo cache
3741 run : cargo clean
3842
3943 ledger-tests :
4044 timeout-minutes : 20
4145 runs-on : ubuntu-24.04
42- strategy :
43- matrix :
44- ocaml_version : [4.14.2]
4546 steps :
4647 - name : Git checkout
4748 uses : actions/checkout@v5
@@ -52,13 +53,13 @@ jobs:
5253 - name : Use shared OCaml setting up steps
5354 uses : ./.github/actions/setup-ocaml
5455 with :
55- ocaml_version : ${{ matrix.ocaml_version }}
56+ ocaml_version : ${{ env.OCAML_VERSION }}
5657
5758 - name : Setup Rust
5859 uses : ./.github/actions/setup-rust
5960 with :
60- toolchain : nightly
61- cache-prefix : ledger-v0
61+ toolchain : ${{ env.RUST_NIGHTLY_VERSION }}
62+ cache-prefix : ledger-${{ env.CACHE_VERSION }}
6263
6364 - name : Download circuits files
6465 uses : ./.github/actions/setup-circuits
8283 - name : Setup Rust
8384 uses : ./.github/actions/setup-rust
8485 with :
85- toolchain : nightly
86- cache-prefix : p2p-messages-v0
86+ toolchain : ${{ env.RUST_NIGHTLY_VERSION }}
87+ cache-prefix : p2p-messages-${{ env.CACHE_VERSION }}
8788
8889 - name : Download circuits files
8990 uses : ./.github/actions/setup-circuits
@@ -127,9 +128,6 @@ jobs:
127128 vrf-tests :
128129 timeout-minutes : 20
129130 runs-on : ubuntu-24.04
130- strategy :
131- matrix :
132- ocaml_version : [4.14.2]
133131 steps :
134132 - name : Git checkout
135133 uses : actions/checkout@v5
@@ -140,13 +138,13 @@ jobs:
140138 - name : Use shared OCaml setting up steps
141139 uses : ./.github/actions/setup-ocaml
142140 with :
143- ocaml_version : ${{ matrix.ocaml_version }}
141+ ocaml_version : ${{ env.OCAML_VERSION }}
144142
145143 - name : Setup Rust
146144 uses : ./.github/actions/setup-rust
147145 with :
148- toolchain : nightly
149- cache-prefix : vrf-v0
146+ toolchain : ${{ env.RUST_NIGHTLY_VERSION }}
147+ cache-prefix : vrf-${{ env.CACHE_VERSION }}
150148
151149 - name : Build vrf tests
152150 run : make build-vrf
@@ -167,8 +165,8 @@ jobs:
167165 - name : Setup Rust
168166 uses : ./.github/actions/setup-rust
169167 with :
170- toolchain : 1.84
171- cache-prefix : p2p-v0
168+ toolchain : ${{ env.RUST_STABLE_VERSION }}
169+ cache-prefix : p2p-${{ env.CACHE_VERSION }}
172170
173171 - name : Test p2p crate
174172 run : make test-p2p
@@ -187,13 +185,13 @@ jobs:
187185 - name : Use shared OCaml setting up steps
188186 uses : ./.github/actions/setup-ocaml
189187 with :
190- ocaml_version : 4.14.2
188+ ocaml_version : ${{ env.OCAML_VERSION }}
191189
192190 - name : Setup Rust
193191 uses : ./.github/actions/setup-rust
194192 with :
195- toolchain : 1.84
196- cache-prefix : build-v0
193+ toolchain : ${{ env.RUST_STABLE_VERSION }}
194+ cache-prefix : build-${{ env.CACHE_VERSION }}
197195
198196 - name : Release build
199197 run : make build-release
@@ -222,6 +220,25 @@ jobs:
222220 path : target/release/mina
223221 retention-days : 7
224222
223+ account-tests :
224+ timeout-minutes : 20
225+ runs-on : ubuntu-24.04
226+ steps :
227+ - name : Git checkout
228+ uses : actions/checkout@v5
229+
230+ - name : Setup build dependencies
231+ uses : ./.github/actions/setup-build-deps
232+
233+ - name : Setup Rust
234+ uses : ./.github/actions/setup-rust
235+ with :
236+ toolchain : ${{ env.RUST_STABLE_VERSION }}
237+ cache-prefix : build-${{ env.CACHE_VERSION }}
238+
239+ - name : Run account tests
240+ run : make test-account
241+
225242 build-tests :
226243 timeout-minutes : 60
227244 runs-on : ubuntu-22.04
@@ -235,13 +252,13 @@ jobs:
235252 - name : Use shared OCaml setting up steps
236253 uses : ./.github/actions/setup-ocaml
237254 with :
238- ocaml_version : 4.14.2
255+ ocaml_version : ${{ env.OCAML_VERSION }}
239256
240257 - name : Setup Rust
241258 uses : ./.github/actions/setup-rust
242259 with :
243- toolchain : 1.84
244- cache-prefix : build-tests-v0
260+ toolchain : ${{ env.RUST_STABLE_VERSION }}
261+ cache-prefix : build-tests-${{ env.CACHE_VERSION }}
245262
246263 - name : Build tests
247264 run : make build-tests
@@ -266,13 +283,13 @@ jobs:
266283 - name : Use shared OCaml setting up steps
267284 uses : ./.github/actions/setup-ocaml
268285 with :
269- ocaml_version : 4.14.2
286+ ocaml_version : ${{ env.OCAML_VERSION }}
270287
271288 - name : Setup Rust
272289 uses : ./.github/actions/setup-rust
273290 with :
274- toolchain : 1.84
275- cache-prefix : build-tests-webrtc-v0
291+ toolchain : ${{ env.RUST_STABLE_VERSION }}
292+ cache-prefix : build-tests-webrtc-${{ env.CACHE_VERSION }}
276293
277294 - name : Build tests
278295 run : make build-tests-webrtc
@@ -297,8 +314,8 @@ jobs:
297314 - name : Setup Rust
298315 uses : ./.github/actions/setup-rust
299316 with :
300- toolchain : nightly
301- cache-prefix : build-wasm-v0
317+ toolchain : ${{ env.RUST_NIGHTLY_VERSION }}
318+ cache-prefix : build-wasm-${{ env.CACHE_VERSION }}
302319
303320 - name : Setup wasm tooling
304321 run : make setup-wasm
0 commit comments