diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74e885a..ede3a48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,16 +16,30 @@ jobs: shell: nix develop --command bash {0} steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install nix - uses: nixbuild/nix-quick-install-action@v25 + uses: nixbuild/nix-quick-install-action@v26 + with: + nix_conf: | + keep-outputs = true + + - name: Restore and cache Nix store + uses: nix-community/cache-nix-action@823d0bb8ea9ae066ae0583255e97b221397de509 + with: + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/flake.lock') }} + restore-prefixes-first-match: nix-${{ runner.os }}- + gc-max-store-size-linux: 1073741824 + purge: true + purge-prefixes: cache-${{ matrix.os }}- + purge-created: 0 + purge-primary-key: never - name: Get pnpm store directory id: pnpm-cache run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 379abbc..b3ae955 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,18 +16,16 @@ jobs: shell: nix develop --command bash {0} steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install nix - uses: nixbuild/nix-quick-install-action@v25 + uses: nixbuild/nix-quick-install-action@v26 - name: Get pnpm store directory id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}