summaryrefslogtreecommitdiff
path: root/.github/workflows/nix.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/nix.yaml')
-rw-r--r--.github/workflows/nix.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml
new file mode 100644
index 0000000..193c6a3
--- /dev/null
+++ b/.github/workflows/nix.yaml
@@ -0,0 +1,25 @@
+name: Nix
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ check:
+ name: Check flake
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Nix
+ uses: DeterminateSystems/nix-installer-action@v9
+
+ - name: Setup cache
+ uses: DeterminateSystems/magic-nix-cache-action@v2
+
+ - name: Run check
+ run: |
+ nix flake check -L --show-trace