wip: add echo output if no cache hit
All checks were successful
Flake checks / Check (pull_request) Successful in 1m38s
All checks were successful
Flake checks / Check (pull_request) Successful in 1m38s
This commit is contained in:
parent
4a9fa26d02
commit
b62c2a3db4
|
@ -25,6 +25,7 @@ jobs:
|
||||||
echo "hash=$(md5sum flake.lock | awk '{print $1}')" >> $GITHUB_OUTPUT
|
echo "hash=$(md5sum flake.lock | awk '{print $1}')" >> $GITHUB_OUTPUT
|
||||||
- name: Restore and cache Nix store
|
- name: Restore and cache Nix store
|
||||||
uses: https://github.com/nix-community/cache-nix-action@v4
|
uses: https://github.com/nix-community/cache-nix-action@v4
|
||||||
|
id: nix-store-cache
|
||||||
with:
|
with:
|
||||||
key: cache-x86_64-linux-nix-store-${{ steps.flake-lock-hash.outputs.hash }}
|
key: cache-x86_64-linux-nix-store-${{ steps.flake-lock-hash.outputs.hash }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
|
@ -37,6 +38,9 @@ jobs:
|
||||||
purge-key: cache-x86_64-linux-nix-store-
|
purge-key: cache-x86_64-linux-nix-store-
|
||||||
purge-created: true
|
purge-created: true
|
||||||
purge-created-max-age: 42
|
purge-created-max-age: 42
|
||||||
|
- name: echo if no cache hit
|
||||||
|
if: steps.nix-store-cache.outputs.cache-hit != 'true'
|
||||||
|
run: echo no cache hit
|
||||||
- name: Prepare cachix
|
- name: Prepare cachix
|
||||||
uses: https://github.com/cachix/cachix-action@v12
|
uses: https://github.com/cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue