Merge pull request 'ci: update nix-quick-install-action, cache-nix-action, cachix-action' (#150) from chore-update-ci into main

Reviewed-on: #150
Reviewed-by: b12f <b12f@noreply.git.pub.solar>
pull/151/head
teutat3s 2024-04-22 15:19:36 +00:00
commit e8530caf1d
Signed by: pub.solar gitea
GPG Key ID: F0332B04B7054873
1 changed files with 8 additions and 9 deletions

View File

@ -10,7 +10,7 @@ jobs:
- name: Check out repository code
uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://github.com/nixbuild/nix-quick-install-action@v26
- uses: https://github.com/nixbuild/nix-quick-install-action@v27
with:
load_nixConfig: false
nix_conf: |
@ -24,23 +24,22 @@ jobs:
echo "hash=$(md5sum flake.lock | awk '{print $1}')" >> $GITHUB_OUTPUT
- 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@v5
id: nix-store-cache
with:
key: cache-${{ runner.os }}-nix-store-${{ steps.flake-lock-hash.outputs.hash }}
restore-keys: |
primary-key: cache-${{ runner.os }}-nix-store-${{ steps.flake-lock-hash.outputs.hash }}
restore-prefixes-first-match: |
cache-${{ runner.os }}-nix-store-
gc-linux: true
gc-max-store-size-linux: 10000000000
purge-caches: true
purge-keys: cache-${{ runner.os }}-nix-store-
purge-created: true
purge-created-max-age: 42
purge: true
purge-prefixes: cache-${{ runner.os }}-nix-store-
purge-created: 42
- name: Prepare cachix
uses: https://github.com/cachix/cachix-action@v12
uses: https://github.com/cachix/cachix-action@v14
with:
name: pub-solar
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'