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

View File

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