From 11231afb2ee3cc5244322496d1f400f5aa702d82 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 17 Jun 2024 21:27:35 +0200 Subject: [PATCH] ci: add nix build workflow --- .github/workflows/nix-build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/nix-build.yml diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml new file mode 100644 index 0000000..94014f2 --- /dev/null +++ b/.github/workflows/nix-build.yml @@ -0,0 +1,27 @@ +--- +name: "Nix build" +on: + pull_request: + push: + workflow_call: +jobs: + nix-flake-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v10 + - uses: cachix/cachix-action@v12 + with: + name: neorocks + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix flake check -L --accept-flake-config + build-devShell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@v10 + - uses: cachix/cachix-action@v12 + with: + name: neorocks + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build .#devShells.x86_64-linux.default -L --accept-flake-config