From 66a8cd8d9a28018e286e7962e4a3a5d50a7e405f Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Wed, 15 Nov 2023 18:43:58 +0000 Subject: [PATCH] fixup! Use GitHub Actions cache with Nix --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca4a253b..a9dfcff9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,11 @@ jobs: - uses: DeterminateSystems/nix-installer-action@v7 - uses: DeterminateSystems/magic-nix-cache-action@v2 + # Evaluate the devshell here so that the time reported for subsequent + # steps that use it reflect what is actually done there. + - name: Evaluate devshell + run: nix develop + - name: Format run: nix develop --command treefmt --fail-on-change @@ -52,6 +57,11 @@ jobs: - uses: DeterminateSystems/nix-installer-action@v7 - uses: DeterminateSystems/magic-nix-cache-action@v2 + # Evaluate the devshell here so that the time reported for subsequent + # steps that use it reflect what is actually done there. + - name: Evaluate devshell + run: nix develop + - name: Build run: nix build -L .#${{ matrix.package }}