Skip to content

Commit b273375

Browse files
authored
ci: add Cachix cache (#919)
This will improve CI performance, and may also be used locally, although this is not officially documented at this time. I tested the required amount of space by building a `pkgs.linkFarm` containing all testbeds, then manually pushing this to an empty Cachix cache. The total space used was 274 MiB of the 5 GiB free allowance, so Cachix is good enough to cache at least 20 commits of history, assuming the worst case scenario of every commit changing every derivation we build. Fixes #880
1 parent a98c363 commit b273375

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/check.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
steps:
1919
- uses: DeterminateSystems/nix-installer-action@v16
2020

21+
- uses: cachix/cachix-action@v15
22+
with:
23+
name: stylix
24+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
25+
2126
- id: get-derivations
2227
run: |
2328
set -o pipefail
@@ -84,6 +89,11 @@ jobs:
8489
'false'
8590
}}
8691
92+
- uses: cachix/cachix-action@v15
93+
with:
94+
name: stylix
95+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
96+
8797
- run: |
8898
nix build --no-update-lock-file --print-build-logs \
8999
github:${{

.github/workflows/docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v4
28+
2829
- uses: DeterminateSystems/nix-installer-action@v16
30+
31+
- uses: cachix/cachix-action@v15
32+
with:
33+
name: stylix
34+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
35+
2936
- run: nix build .#docs
3037

3138
- uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)