Skip to content

Commit

Permalink
ci: added github action for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanholz committed Jan 26, 2024
1 parent edcae2a commit 7250780
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Publish the Nix flake outputs to Cachix
name: Cachix
on:
push:
branches:
- main

jobs:
publish:
name: Publish Flake
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install nix
uses: DeterminateSystems/nix-installer-action@main

- name: Setup Magic Cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Authenticate with Cachix
uses: cachix/cachix-action@v12
with:
name: knuckles-rs
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

- name: Run Checks
run: nix flake check -L --accept-flake-config

- name: Build nix flake
run: nix build -L --accept-flake-config

0 comments on commit 7250780

Please sign in to comment.