summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
new file mode 100644
index 0000000..f35e930
--- /dev/null
+++ b/.github/workflows/check.yml
@@ -0,0 +1,26 @@
+name: check flake
+
+on:
+ pull_request:
+ paths:
+ - "**.nix"
+ push:
+ paths:
+ - "**.nix"
+ workflow_dispatch:
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: cachix/install-nix-action@v19
+ with:
+ github_access_token: ${{ secrets.GITHUB_TOKEN }}
+
+ - run: |
+ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
+ export NIXPKGS_ALLOW_BROKEN=1
+ export NIXPKGS_ALLOW_UNFREE=1
+ nix flake check --impure