From 14123c49a27250e87c990f5ed6434aac2b5d49d7 Mon Sep 17 00:00:00 2001 From: Hayajiro Date: Sun, 19 Nov 2023 19:51:56 +0100 Subject: [PATCH] Add cache for NixOS builds --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/update.yml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79fd437..cd14135 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 10fc6b4..f85ef63 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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