Merge pull request #27 from snaakey/nix

ci: Add nix workflow
This commit is contained in:
Gaspard Wierzbinski 2024-08-26 13:52:06 +02:00 committed by GitHub
commit 5c817fdb57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

25
.github/workflows/nix-flake.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Nix Build
on:
pull_request:
push:
branches: ["*"]
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Build default package
run: nix build .
- name: Check flakes
run: nix flake check --allow-import-from-derivation