@@ -19,14 +19,20 @@ jobs:
1919 steps :
2020 - name : checkout
2121 uses : actions/checkout@v4
22+ - name : Get flake hash
23+ id : flake-hash
24+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
2225 - name : Install Nix
2326 uses : DeterminateSystems/nix-installer-action@v17
2427 - name : Nix Cache
2528 uses : DeterminateSystems/magic-nix-cache-action@main
29+ with :
30+ diagnostic-endpoint : " "
31+ use-flakehub : false
2632 - name : Rust Cache
2733 uses : Swatinem/rust-cache@v2
2834 with :
29- shared-key : " nightly"
35+ shared-key : " nightly-${{ steps.flake-hash.outputs.hash }} "
3036 - name : Cargo fmt
3137 run : |
3238 nix develop -i -L .#nightly --command bash -c '
@@ -56,14 +62,20 @@ jobs:
5662 steps :
5763 - name : checkout
5864 uses : actions/checkout@v4
65+ - name : Get flake hash
66+ id : flake-hash
67+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
5968 - name : Install Nix
6069 uses : DeterminateSystems/nix-installer-action@v17
6170 - name : Nix Cache
6271 uses : DeterminateSystems/magic-nix-cache-action@main
72+ with :
73+ diagnostic-endpoint : " "
74+ use-flakehub : false
6375 - name : Rust Cache
6476 uses : Swatinem/rust-cache@v2
6577 with :
66- shared-key : " stable"
78+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
6779 - name : Run example
6880 run : nix develop -i -L .#stable --command cargo r --example ${{ matrix.build-args }}
6981
@@ -150,14 +162,20 @@ jobs:
150162 steps :
151163 - name : checkout
152164 uses : actions/checkout@v4
165+ - name : Get flake hash
166+ id : flake-hash
167+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
153168 - name : Install Nix
154169 uses : DeterminateSystems/nix-installer-action@v17
155170 - name : Nix Cache
156171 uses : DeterminateSystems/magic-nix-cache-action@main
172+ with :
173+ diagnostic-endpoint : " "
174+ use-flakehub : false
157175 - name : Rust Cache
158176 uses : Swatinem/rust-cache@v2
159177 with :
160- shared-key : " stable"
178+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
161179 - name : Clippy
162180 run : nix develop -i -L .#stable --command cargo clippy ${{ matrix.build-args }} -- -D warnings
163181 - name : Test
@@ -183,6 +201,9 @@ jobs:
183201 steps :
184202 - name : checkout
185203 uses : actions/checkout@v4
204+ - name : Get flake hash
205+ id : flake-hash
206+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
186207 - name : Free Disk Space (Ubuntu)
187208 uses : jlumbroso/free-disk-space@main
188209 with :
@@ -197,10 +218,13 @@ jobs:
197218 uses : DeterminateSystems/nix-installer-action@v17
198219 - name : Nix Cache
199220 uses : DeterminateSystems/magic-nix-cache-action@main
221+ with :
222+ diagnostic-endpoint : " "
223+ use-flakehub : false
200224 - name : Rust Cache
201225 uses : Swatinem/rust-cache@v2
202226 with :
203- shared-key : " stable"
227+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
204228 - name : Test
205229 run : nix develop -i -L .#stable --command just itest ${{ matrix.database }}
206230
@@ -223,6 +247,9 @@ jobs:
223247 steps :
224248 - name : checkout
225249 uses : actions/checkout@v4
250+ - name : Get flake hash
251+ id : flake-hash
252+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
226253 - name : Free Disk Space (Ubuntu)
227254 uses : jlumbroso/free-disk-space@main
228255 with :
@@ -237,10 +264,13 @@ jobs:
237264 uses : DeterminateSystems/nix-installer-action@v17
238265 - name : Nix Cache
239266 uses : DeterminateSystems/magic-nix-cache-action@main
267+ with :
268+ diagnostic-endpoint : " "
269+ use-flakehub : false
240270 - name : Rust Cache
241271 uses : Swatinem/rust-cache@v2
242272 with :
243- shared-key : " stable"
273+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
244274 - name : Clippy
245275 run : nix develop -i -L .#stable --command cargo clippy -- -D warnings
246276 - name : Test fake auth mint
@@ -263,6 +293,9 @@ jobs:
263293 steps :
264294 - name : checkout
265295 uses : actions/checkout@v4
296+ - name : Get flake hash
297+ id : flake-hash
298+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
266299 - name : Free Disk Space (Ubuntu)
267300 uses : jlumbroso/free-disk-space@main
268301 with :
@@ -277,10 +310,13 @@ jobs:
277310 uses : DeterminateSystems/nix-installer-action@v17
278311 - name : Nix Cache
279312 uses : DeterminateSystems/magic-nix-cache-action@main
313+ with :
314+ diagnostic-endpoint : " "
315+ use-flakehub : false
280316 - name : Rust Cache
281317 uses : Swatinem/rust-cache@v2
282318 with :
283- shared-key : " stable"
319+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
284320 - name : Test fake mint
285321 run : nix develop -i -L .#stable --command just test-pure ${{ matrix.database }}
286322 - name : Install Postgres
@@ -306,6 +342,9 @@ jobs:
306342 steps :
307343 - name : checkout
308344 uses : actions/checkout@v4
345+ - name : Get flake hash
346+ id : flake-hash
347+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
309348 - name : Free Disk Space (Ubuntu)
310349 uses : jlumbroso/free-disk-space@main
311350 with :
@@ -320,10 +359,13 @@ jobs:
320359 uses : DeterminateSystems/nix-installer-action@v17
321360 - name : Nix Cache
322361 uses : DeterminateSystems/magic-nix-cache-action@main
362+ with :
363+ diagnostic-endpoint : " "
364+ use-flakehub : false
323365 - name : Rust Cache
324366 uses : Swatinem/rust-cache@v2
325367 with :
326- shared-key : " stable"
368+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
327369 - name : Test
328370 run : nix develop -i -L .#stable --command just itest-payment-processor ${{matrix.ln}}
329371
@@ -358,14 +400,20 @@ jobs:
358400 steps :
359401 - name : checkout
360402 uses : actions/checkout@v4
403+ - name : Get flake hash
404+ id : flake-hash
405+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
361406 - name : Install Nix
362407 uses : DeterminateSystems/nix-installer-action@v17
363408 - name : Nix Cache
364409 uses : DeterminateSystems/magic-nix-cache-action@main
410+ with :
411+ diagnostic-endpoint : " "
412+ use-flakehub : false
365413 - name : Rust Cache
366414 uses : Swatinem/rust-cache@v2
367415 with :
368- shared-key : " msrv"
416+ shared-key : " msrv-${{ steps.flake-hash.outputs.hash }} "
369417 - name : Build
370418 run : nix develop -i -L .#msrv --command cargo build ${{ matrix.build-args }}
371419
@@ -391,14 +439,20 @@ jobs:
391439 steps :
392440 - name : checkout
393441 uses : actions/checkout@v4
442+ - name : Get flake hash
443+ id : flake-hash
444+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
394445 - name : Install Nix
395446 uses : DeterminateSystems/nix-installer-action@v17
396447 - name : Nix Cache
397448 uses : DeterminateSystems/magic-nix-cache-action@main
449+ with :
450+ diagnostic-endpoint : " "
451+ use-flakehub : false
398452 - name : Rust Cache
399453 uses : Swatinem/rust-cache@v2
400454 with :
401- shared-key : " stable"
455+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
402456 - name : Build cdk and binding
403457 run : nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
404458
@@ -424,14 +478,20 @@ jobs:
424478 steps :
425479 - name : checkout
426480 uses : actions/checkout@v4
481+ - name : Get flake hash
482+ id : flake-hash
483+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
427484 - name : Install Nix
428485 uses : DeterminateSystems/nix-installer-action@v17
429486 - name : Nix Cache
430487 uses : DeterminateSystems/magic-nix-cache-action@main
488+ with :
489+ diagnostic-endpoint : " "
490+ use-flakehub : false
431491 - name : Rust Cache
432492 uses : Swatinem/rust-cache@v2
433493 with :
434- shared-key : " msrv"
494+ shared-key : " msrv-${{ steps.flake-hash.outputs.hash }} "
435495 - name : Build cdk wasm
436496 run : nix develop -i -L ".#${{ matrix.rust }}" --command cargo build ${{ matrix.build-args }} --target ${{ matrix.target }}
437497
@@ -450,6 +510,9 @@ jobs:
450510 steps :
451511 - name : checkout
452512 uses : actions/checkout@v4
513+ - name : Get flake hash
514+ id : flake-hash
515+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
453516 - name : Free Disk Space (Ubuntu)
454517 uses : jlumbroso/free-disk-space@main
455518 with :
@@ -464,10 +527,13 @@ jobs:
464527 uses : DeterminateSystems/nix-installer-action@v17
465528 - name : Nix Cache
466529 uses : DeterminateSystems/magic-nix-cache-action@main
530+ with :
531+ diagnostic-endpoint : " "
532+ use-flakehub : false
467533 - name : Rust Cache
468534 uses : Swatinem/rust-cache@v2
469535 with :
470- shared-key : " stable"
536+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
471537 - name : Start Keycloak with Backup
472538 run : |
473539 docker compose -f misc/keycloak/docker-compose-recover.yml up -d
@@ -490,6 +556,9 @@ jobs:
490556 steps :
491557 - name : checkout
492558 uses : actions/checkout@v4
559+ - name : Get flake hash
560+ id : flake-hash
561+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
493562 - name : Free Disk Space (Ubuntu)
494563 uses : jlumbroso/free-disk-space@main
495564 with :
@@ -504,10 +573,13 @@ jobs:
504573 uses : DeterminateSystems/nix-installer-action@v17
505574 - name : Nix Cache
506575 uses : DeterminateSystems/magic-nix-cache-action@main
576+ with :
577+ diagnostic-endpoint : " "
578+ use-flakehub : false
507579 - name : Rust Cache
508580 uses : Swatinem/rust-cache@v2
509581 with :
510- shared-key : " stable"
582+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
511583 - name : Run doc tests
512584 run : nix develop -i -L .#stable --command cargo test --doc
513585
@@ -519,13 +591,19 @@ jobs:
519591 steps :
520592 - name : checkout
521593 uses : actions/checkout@v4
594+ - name : Get flake hash
595+ id : flake-hash
596+ run : echo "hash=$(sha256sum flake.lock | cut -d' ' -f1 | cut -c1-8)" >> $GITHUB_OUTPUT
522597 - name : Install Nix
523598 uses : DeterminateSystems/nix-installer-action@v17
524599 - name : Nix Cache
525600 uses : DeterminateSystems/magic-nix-cache-action@main
601+ with :
602+ diagnostic-endpoint : " "
603+ use-flakehub : false
526604 - name : Rust Cache
527605 uses : Swatinem/rust-cache@v2
528606 with :
529- shared-key : " stable"
607+ shared-key : " stable-${{ steps.flake-hash.outputs.hash }} "
530608 - name : Check docs with strict warnings
531609 run : nix develop -i -L .#stable --command just docs-strict
0 commit comments