forked from haskell/hackage-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt to cache
/nix
in Nix Shell Github Action
- Loading branch information
1 parent
5a5b310
commit 49f09ed
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,29 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
# https://github.com/cachix/install-nix-action/issues/56 | ||
- run: | | ||
sudo mkdir -p /nix/store | ||
sudo chmod -R 777 /nix | ||
- name: Cache nix env take N+1 | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
# See https://github.com/actions/cache/pull/726 | ||
/nix/store/** | ||
# Missing something? | ||
# /nix/var/nix/*/* | ||
# /nix/var/nix/db/* | ||
# /nix/var/nix/db/*/** | ||
# !/nix/var/nix/daemon-socket/socket | ||
# !/nix/var/nix/userpool/* | ||
# !/nix/var/nix/gc.lock | ||
# !/nix/var/nix/db/big-lock | ||
# !/nix/var/nix/db/reserved | ||
key: ${{ runner.os }}-nix-store-${{ hashFiles('**') }} | ||
restore-keys: ${{ runner.os }}-nix-store- | ||
|
||
- uses: cachix/install-nix-action@v16 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-21.11 | ||
|