Skip to content

Commit 14fdc1e

Browse files
committed
CI/tests: use env var for versioning
1 parent d834084 commit 14fdc1e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
RUST_STABLE_VERSION: "1.84"
2121
RUST_NIGHTLY_VERSION: "nightly"
2222
OCAML_VERSION: "4.14.2"
23+
CACHE_VERSION: "v0"
2324

2425
concurrency:
2526
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -58,7 +59,7 @@ jobs:
5859
uses: ./.github/actions/setup-rust
5960
with:
6061
toolchain: ${{ env.RUST_NIGHTLY_VERSION }}
61-
cache-prefix: ledger-v0
62+
cache-prefix: ledger-${{ env.CACHE_VERSION }}
6263

6364
- name: Download circuits files
6465
uses: ./.github/actions/setup-circuits
@@ -83,7 +84,7 @@ jobs:
8384
uses: ./.github/actions/setup-rust
8485
with:
8586
toolchain: ${{ env.RUST_NIGHTLY_VERSION }}
86-
cache-prefix: p2p-messages-v0
87+
cache-prefix: p2p-messages-${{ env.CACHE_VERSION }}
8788

8889
- name: Download circuits files
8990
uses: ./.github/actions/setup-circuits
@@ -143,7 +144,7 @@ jobs:
143144
uses: ./.github/actions/setup-rust
144145
with:
145146
toolchain: ${{ env.RUST_NIGHTLY_VERSION }}
146-
cache-prefix: vrf-v0
147+
cache-prefix: vrf-${{ env.CACHE_VERSION }}
147148

148149
- name: Build vrf tests
149150
run: make build-vrf
@@ -165,7 +166,7 @@ jobs:
165166
uses: ./.github/actions/setup-rust
166167
with:
167168
toolchain: ${{ env.RUST_STABLE_VERSION }}
168-
cache-prefix: p2p-v0
169+
cache-prefix: p2p-${{ env.CACHE_VERSION }}
169170

170171
- name: Test p2p crate
171172
run: make test-p2p
@@ -190,7 +191,7 @@ jobs:
190191
uses: ./.github/actions/setup-rust
191192
with:
192193
toolchain: ${{ env.RUST_STABLE_VERSION }}
193-
cache-prefix: build-v0
194+
cache-prefix: build-${{ env.CACHE_VERSION }}
194195

195196
- name: Release build
196197
run: make build-release
@@ -233,7 +234,7 @@ jobs:
233234
uses: ./.github/actions/setup-rust
234235
with:
235236
toolchain: ${{ env.RUST_STABLE_VERSION }}
236-
cache-prefix: build-v0
237+
cache-prefix: build-${{ env.CACHE_VERSION }}
237238

238239
- name: Run account tests
239240
run: make test-account
@@ -257,7 +258,7 @@ jobs:
257258
uses: ./.github/actions/setup-rust
258259
with:
259260
toolchain: ${{ env.RUST_STABLE_VERSION }}
260-
cache-prefix: build-tests-v0
261+
cache-prefix: build-tests-${{ env.CACHE_VERSION }}
261262

262263
- name: Build tests
263264
run: make build-tests
@@ -288,7 +289,7 @@ jobs:
288289
uses: ./.github/actions/setup-rust
289290
with:
290291
toolchain: ${{ env.RUST_STABLE_VERSION }}
291-
cache-prefix: build-tests-webrtc-v0
292+
cache-prefix: build-tests-webrtc-${{ env.CACHE_VERSION }}
292293

293294
- name: Build tests
294295
run: make build-tests-webrtc
@@ -314,7 +315,7 @@ jobs:
314315
uses: ./.github/actions/setup-rust
315316
with:
316317
toolchain: ${{ env.RUST_NIGHTLY_VERSION }}
317-
cache-prefix: build-wasm-v0
318+
cache-prefix: build-wasm-${{ env.CACHE_VERSION }}
318319

319320
- name: Setup wasm tooling
320321
run: make setup-wasm

0 commit comments

Comments
 (0)