From 6b49918b9646863e73bbedd1d47f474ba3783408 Mon Sep 17 00:00:00 2001 From: Ryan Hendrickson Date: Fri, 3 Nov 2023 22:29:17 -0400 Subject: [PATCH] Drop container ID from CI cache key, use image (#4516) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07a3155e8..d88257ed0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,7 +116,7 @@ jobs: path: | /root/.stack ${{ steps.haskell.outputs.stack-root }} - key: "${{ runner.os }}-${{ job.container.id }}-MdyPsf-${{ hashFiles('stack.yaml') }}" + key: "${{ matrix.image || runner.os }}--MdyPsf-${{ hashFiles('stack.yaml') }}" - name: "(Windows only) Configure Stack to store its programs in STACK_ROOT" # This ensures that the local GHC and MSYS binaries that Stack installs @@ -242,7 +242,7 @@ jobs: with: path: | /root/.stack - key: "${{ runner.os }}-${{ job.container.id }}-UnWw0N-lint-${{ hashFiles('stack.yaml') }}" + key: "lint-${{ hashFiles('stack.yaml') }}" - run: "ci/fix-home ci/run-hlint.sh --git" env: