feat: use save-always in cache action (#5010)

Follows up on
https://github.com/leanprover/lean4/pull/5003#issuecomment-2284813940
This commit is contained in:
Henrik Böving 2024-08-13 11:27:15 +02:00 committed by GitHub
parent 041b80a4f5
commit 74f9dea701
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -337,6 +337,7 @@ jobs:
# fall back to (latest) previous cache
restore-keys: |
${{ matrix.name }}-build-v3
save-always: true
# open nix-shell once for initial setup
- name: Setup
run: |

View file

@ -62,6 +62,7 @@ jobs:
# fall back to (latest) previous cache
restore-keys: |
${{ matrix.name }}-nix-store-cache
save-always: true
- name: Further Set Up Nix Cache
shell: bash -euxo pipefail {0}
run: |
@ -85,6 +86,7 @@ jobs:
# fall back to (latest) previous cache
restore-keys: |
${{ matrix.name }}-nix-ccache
save-always: true
- name: Further Set Up CCache Cache
run: |
sudo chown -R root:nixbld /nix/var/cache