|
6 | 6 | - name: Setup Nix |
7 | 7 | uses: nixbuild/nix-quick-install-action@5bb6a3b3abe66fd09bbf250dce8ada94f856a703 # v30 |
8 | 8 |
|
9 | | - - uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6.1.3 |
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 | + # - uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6.1.3 |
| 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 |
27 | 27 |
|
28 | 28 | - name: Enter devshell |
29 | 29 | uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1.2.1 |
|
0 commit comments