diff --git a/.github/workflows/nix-flake-check.yaml b/.github/workflows/nix-flake-check.yaml new file mode 100644 index 0000000..080fd59 --- /dev/null +++ b/.github/workflows/nix-flake-check.yaml @@ -0,0 +1,20 @@ +name: Check +on: + workflow_dispatch: + pull_request: + push: + branches: [master, main] + +jobs: + nix-flake-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Nix + uses: cachix/install-nix-action@v17 + with: + # Mostly to avoid GitHub rate limiting + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Check + run: nix flake check