From 83005b7f7286a7f03aee2be92ce6e548e82cdb86 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 27 May 2022 10:47:13 +0100 Subject: [PATCH] Install nix before cache read --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dff2d201..84fee85c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,10 @@ jobs: integration_test/ config-example.yaml + - name: Install Nix + uses: cachix/install-nix-action@v16 + if: steps.changed-files.outputs.any_changed == 'true' + - name: Nix cache uses: actions/cache@v3 if: steps.changed-files.outputs.any_changed == 'true' @@ -41,9 +45,6 @@ jobs: restore-keys: | ${{ runner.os }}-nix- - - uses: cachix/install-nix-action@v16 - if: steps.changed-files.outputs.any_changed == 'true' - - id: go-cache-paths if: steps.changed-files.outputs.any_changed == 'true' run: |