Skip to content

Commit a61d385

Browse files
committed
Use cachix to cache builds
CI is getting too slow, rebuilding too many derivations, especially now that we depend on a patched treefmt (ironically the patch is there to speed it up)
1 parent 484fa57 commit a61d385

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535

3636
- uses: cachix/install-nix-action@v26
3737

38+
- uses: cachix/cachix-action@v14
39+
with:
40+
name: nixos-nixfmt
41+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
42+
3843
- name: checks
3944
run: nix-build -A ci
4045

@@ -75,6 +80,11 @@ jobs:
7580

7681
- uses: cachix/install-nix-action@v26
7782

83+
- uses: cachix/cachix-action@v14
84+
with:
85+
name: nixos-nixfmt
86+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
87+
7888
- run: |
7989
./scripts/sync-pr.sh \
8090
https://github.com/${{ github.repository }} \

0 commit comments

Comments
 (0)