File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : nightly
2+
3+ on :
4+ schedule :
5+ - cron : " 13 15 * * *"
6+ jobs :
7+ nightly_release :
8+ environment : env
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - name : Install Nix
13+ uses : cachix/install-nix-action@v17
14+ with :
15+ extra_nix_config : |
16+ access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
17+
18+ - name : Restore and save Nix store
19+ uses : nix-community/cache-nix-action@v6
20+ with :
21+ # restore and save a cache using this key
22+ primary-key : nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
23+ # if there's no cache hit, restore a cache by this prefix
24+ restore-prefixes-first-match : nix-${{ runner.os }}-
25+ # collect garbage until the Nix store size (in bytes) is at most this number
26+ # before trying to save a new cache
27+ # 1G = 1073741824
28+ gc-max-store-size-linux : 1G
29+ # do purge caches
30+ purge : true
31+ # purge all versions of the cache
32+ purge-prefixes : nix-${{ runner.os }}-
33+ # created more than this number of seconds ago
34+ purge-created : 0
35+ # or last accessed this duration (ISO 8601 duration format)
36+ # before the start of the `Post Restore and save Nix store` phase
37+ purge-last-accessed : P1DT12H
38+ # except any version with the key that is the same as the `primary-key`
39+ purge-primary-key : never
40+
41+ - uses : actions/checkout@v6
42+ with :
43+ ref : master
44+
45+ - name : release
46+ run : make ci-release-nightly
47+ env :
48+ CERULEAN_PASSPHRASE : ${{ secrets.CERULEAN_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments