From 860aa67de9d44be5b419c453299eef0f7af8c5ab Mon Sep 17 00:00:00 2001 From: nyiyui <+@nyiyui.ca> Date: Mon, 12 Dec 2022 02:06:15 -0500 Subject: [PATCH] add nix github action --- .github/workflows/nix.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..74546ea --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,23 @@ +name: Nix + +on: + pull_request: + push: + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v17 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v11 + with: + name: mycache + # If you chose signing key for write access + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + # If you chose API tokens for write access OR if you have a private cache + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build + - run: nix flake check