From e5db1c449d55d87de63e25974953700b6dc9adaf Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 4 Jul 2025 13:21:00 -0400 Subject: [PATCH] Prefetch inputs why not --- .github/workflows/workflow.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b1963a7..8c2cdef 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -108,6 +108,8 @@ jobs: FLAKE_ITER_FLAKEREF: ${{ inputs.flake-iter-flakeref }} working-directory: ${{ inputs.directory }} run: | + nix flake prefetch-inputs "$FLAKE_ITER_FLAKEREF" + nix flake prefetch-inputs nix run "$FLAKE_ITER_FLAKEREF" -- systems build: runs-on: ${{ matrix.systems.runner }} @@ -134,7 +136,10 @@ jobs: FLAKE_ITER_NIX_SYSTEM: ${{ matrix.systems.nix-system }} FLAKE_ITER_FLAKEREF: ${{ inputs.flake-iter-flakeref }} working-directory: ${{ inputs.directory }} - run: nix run "$FLAKE_ITER_FLAKEREF" -- --verbose build + run: | + nix flake prefetch-inputs "$FLAKE_ITER_FLAKEREF" + nix flake prefetch-inputs + nix run "$FLAKE_ITER_FLAKEREF" -- --verbose build success: runs-on: ubuntu-latest