From 536f0311cfbcdd8cf30b26a0b92bf3f6ac72aab2 Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Mon, 13 Apr 2026 09:37:16 +0300 Subject: [PATCH] Clean up unneeded flake-check duplication The cachix action already only pushes from protected branches, based on the presence of the auth token. --- .github/workflows/build.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84332c8..e702717 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,5 @@ -name: check and push +# CI that runs on pull requests and pushes to master. +name: CI on: push: branches: @@ -11,29 +12,14 @@ jobs: stack-test: uses: ./.github/workflows/stack-test.yml - flake-no-push: - name: flake check (no push) - if: github.event_name != 'push' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v31 - - uses: cachix/cachix-action@v15 - with: - name: stackage-infrastructure - - run: nix build - - run: nix flake check - - flake-push: + flake-check: name: flake check and push if: github.event_name == 'push' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: cachix/install-nix-action@v31 - - uses: cachix/cachix-action@v15 - with: - name: stackage-infrastructure - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - uses: DeterminateSystems/magic-nix-cache-action@v13 + - uses: cachix/cachix-action@v17 - run: nix build - run: nix flake check