Add cache for NixOS builds
ci / test (push) Failing after 15s Details
ci / deploy (push) Failing after 16s Details

This commit is contained in:
Hayajiro 2023-11-19 19:51:56 +01:00
parent f54c1c2a07
commit 14123c49a2
2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,9 @@ jobs:
test:
runs-on: ubuntu-latest
container:
volumes:
- /mnt/cache/nix_store:/nix
steps:
- name: Checkout repository
uses: actions/checkout@v4
@ -22,6 +25,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
container:
volumes:
- /mnt/cache/nix_store:/nix
needs: test
if: github.ref == 'refs/heads/master'
steps:

View File

@ -6,6 +6,9 @@ on:
jobs:
update-lockfile:
runs-on: ubuntu-latest
container:
volumes:
- /mnt/cache/nix_store:/nix
steps:
- name: Checkout repository
uses: actions/checkout@v4