diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-23 17:34:01 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-23 17:42:49 +0300 |
| commit | ec2924d0d1f21417802c3efd0ed46b9db2c00582 (patch) | |
| tree | 00432d4dbb46bb82328dfb583e36293c1603bc81 /.github | |
| parent | 0d2c20a46235ae2535d4fdef59b9529e44faa98f (diff) | |
feat: add optional nix flake support
refs #208
refs #221
refs #264
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nix.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000..c8e8e6ff --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,34 @@ +name: Nix + +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: [master] + paths-ignore: + - "website/**" + +permissions: + contents: read + +concurrency: + group: nix-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + flake-check: + name: flake check + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + persist-credentials: false + + - name: Run Nix flake check + run: | + docker run --rm \ + -v "$PWD:/work" \ + -w /work \ + docker.io/nixos/nix:2.31.2 \ + sh -c 'nix --extra-experimental-features "nix-command flakes" flake check --print-build-logs && nix --extra-experimental-features "nix-command flakes" flake check --all-systems --no-build --print-build-logs' |
