From 76039b8fab6022728b3f9dd34d4cf53be128b77f Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 27 Dec 2023 16:43:39 +0000 Subject: [PATCH] add cachix builds --- .github/workflows/cachix.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/cachix.yml diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml new file mode 100644 index 00000000..7868929f --- /dev/null +++ b/.github/workflows/cachix.yml @@ -0,0 +1,23 @@ +name: "Cachix" +on: + pull_request: + push: +jobs: + cache: + strategy: + matrix: + runner: [ ubuntu-latest, macos-latest ] + runs-on: ${{ matrix.runner }} + steps: + - name: Free Disk Space + uses: insightsengineering/free-disk-space@v1.1.0 + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v13 + with: + name: mstksg + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build + - run: nix develop . --command bash -c "echo OK"