-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 878 Bytes
/
cachix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Push to cachix
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cachix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v4
- uses: cachix/cachix-action@v14
with:
name: willruggiano
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix flake check --impure
- run: nix build
- run: cachix pin willruggiano nvim-drv "$(nix build --print-out-paths)"