From 744d7d98631d3e9ca891d52710d0b585186802ba Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Sat, 20 Jul 2024 03:32:25 +0200 Subject: [PATCH] Create cachix.yml --- .github/workflows/cachix.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 0000000..1ad6df5 --- /dev/null +++ b/.github/workflows/cachix.yml @@ -0,0 +1,30 @@ +name: Build and Cache with Cachix + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Nix + uses: cachix/install-nix-action@v27 + + - name: Authenticate with Cachix + uses: cachix/cachix-action@v15 + with: + name: larstvei + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + + - name: Build and Push with Cachix + run: | + set -e + nix build | cachix push larstvei