From 9ead58599a2ae65c873acd7819b3434837d133b0 Mon Sep 17 00:00:00 2001 From: David Johnson Date: Sat, 26 Aug 2023 08:42:06 -0500 Subject: [PATCH] Add CI --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f23867b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: test matrix +on: + push: + branches: + - master + pull_request: + +env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + +jobs: + build: + runs-on: ubuntu-latest + if: github.ref != 'refs/heads/master' + steps: + - uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - name: Build and Test + run: nix-build --experimental-features 'nix-command flakes'