|
6 | 6 | -name:Setup Nix
|
7 | 7 | uses:nixbuild/nix-quick-install-action@5bb6a3b3abe66fd09bbf250dce8ada94f856a703# v30
|
8 | 8 |
|
9 |
| - -uses:nix-community/cache-nix-action@92aaf15ec4f2857ffed00023aecb6504bb4a5d3d# v6 |
10 |
| -with: |
11 |
| -# restore and save a cache using this key |
12 |
| -primary-key:nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} |
13 |
| -# if there's no cache hit, restore a cache by this prefix |
14 |
| -restore-prefixes-first-match:nix-${{ runner.os }}- |
15 |
| -# collect garbage until Nix store size (in bytes) is at most this number |
16 |
| -# before trying to save a new cache |
17 |
| -# 1 GB = 1073741824 B |
18 |
| -gc-max-store-size-linux:1073741824 |
19 |
| -# do purge caches |
20 |
| -purge:true |
21 |
| -# purge all versions of the cache |
22 |
| -purge-prefixes:nix-${{ runner.os }}- |
23 |
| -# created more than this number of seconds ago relative to the start of the `Post Restore` phase |
24 |
| -purge-created:0 |
25 |
| -# except the version with the `primary-key`, if it exists |
26 |
| -purge-primary-key:never |
| 9 | +# Using the cache is somehow slower, so we're not using it for now. |
| 10 | +# - uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6.1.3 |
| 11 | +# with: |
| 12 | +# # restore and save a cache using this key |
| 13 | +# primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} |
| 14 | +# # if there's no cache hit, restore a cache by this prefix |
| 15 | +# restore-prefixes-first-match: nix-${{ runner.os }}- |
| 16 | +# # collect garbage until Nix store size (in bytes) is at most this number |
| 17 | +# # before trying to save a new cache |
| 18 | +# # 1 GB = 1073741824 B |
| 19 | +# gc-max-store-size-linux: 1073741824 |
| 20 | +# # do purge caches |
| 21 | +# purge: true |
| 22 | +# # purge all versions of the cache |
| 23 | +# purge-prefixes: nix-${{ runner.os }}- |
| 24 | +# # created more than this number of seconds ago relative to the start of the `Post Restore` phase |
| 25 | +# purge-created: 0 |
| 26 | +# # except the version with the `primary-key`, if it exists |
| 27 | +# purge-primary-key: never |
27 | 28 |
|
28 | 29 | -name:Enter devshell
|
29 | 30 | uses:nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a# v1.2.1
|
|