CI: save gitv3 cache
A cache hit on restore means the cache is not saved afterwards.
This commit is contained in:
parent
b085d95461
commit
db62bca56c
1 changed files with 3 additions and 2 deletions
5
.github/workflows/check.yml
vendored
5
.github/workflows/check.yml
vendored
|
|
@ -37,14 +37,15 @@ jobs:
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/nix/gitv3
|
path: ~/.cache/nix/gitv3
|
||||||
key: nix-gitv3-cache
|
key: nix-gitv3-cache-${{ hashFiles('flake.lock') }}
|
||||||
|
restore-keys: nix-gitv3-cache-
|
||||||
- name: nix flake check
|
- name: nix flake check
|
||||||
run: nix flake check -L --show-trace
|
run: nix flake check -L --show-trace
|
||||||
|
|
||||||
# TODO: try to improve caching.
|
# TODO: try to improve caching.
|
||||||
#
|
#
|
||||||
# We spend a lot of time fetching sources. Caching all of ~/.cache/nix/gitv3 is
|
# We spend a lot of time fetching sources. Caching all of ~/.cache/nix/gitv3 is
|
||||||
# not ideal (it is likely too large).
|
# not ideal: it is too large (3GiB) and we don't expire individual checkouts.
|
||||||
# https://github.com/DeterminateSystems/magic-nix-cache/issues/28 may help.
|
# https://github.com/DeterminateSystems/magic-nix-cache/issues/28 may help.
|
||||||
#
|
#
|
||||||
# The "magic" nix cache hits usage limits:
|
# The "magic" nix cache hits usage limits:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue