-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (36 loc) · 1.04 KB
/
update-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
33
34
35
36
37
# Updates the bonsol nix binary cache hosted via cachix:
#
# substituter: https://bonsol.cachix.org
# public-key: bonsol.cachix.org-1:yz7vi1rCPW1BpqoszdJvf08HZxQ/5gPTPxft4NnT74A=
name: Update Cachix
on:
push:
branches:
- main
concurrency:
group: main-build-cache
cancel-in-progress: true
permissions: read-all
jobs:
update-cachix:
name: Update Cachix
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
extra-substituters = https://bonsol.cachix.org
extra-trusted-public-keys = bonsol.cachix.org-1:yz7vi1rCPW1BpqoszdJvf08HZxQ/5gPTPxft4NnT74A=
- name: Install and configure Cachix
uses: cachix/cachix-action@v15
with:
name: bonsol
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
run: nix flake check
run: nix develop