Skip to content

Commit

Permalink
Merge pull request #8 from huuff/gh-actions
Browse files Browse the repository at this point in the history
ci: gh actions for nix template (closes #4)
  • Loading branch information
huuff authored Oct 12, 2024
2 parents d561455 + 2b8e041 commit 0de1c6d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nix/.github/workflows/nix-flake-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check
on:
workflow_dispatch:
pull_request:
push:
branches: [master, main]

jobs:
nix-flake-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
# Mostly to avoid GitHub rate limiting
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Check
run: nix flake check -L

0 comments on commit 0de1c6d

Please sign in to comment.