Skip to content

Commit

Permalink
chore: Automatically update binary cache
Browse files Browse the repository at this point in the history
  • Loading branch information
eureka-cpu authored and austbot committed Oct 31, 2024
1 parent 7b2fa28 commit 4bd6c6e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/update-cachix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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

0 comments on commit 4bd6c6e

Please sign in to comment.