From 4345350038609e4b47270dcb73c1bc6dcb3dfd60 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 5 Mar 2023 10:17:09 -0800 Subject: Another attempt at fixing Windows CI caching. We use setup-haskell, which defines cabal-store as one of its outputs. --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 758cb5a80..bc6f9c3ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,14 +162,20 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Setup Haskell + id: setup-haskell + uses: actions/setup-haskell@v1.1 + with: + ghc-version: 9.4.4 + cabal-version: latest + # declare/restore cached things - name: Cache cabal global package db id: cabal-global uses: actions/cache@v3 with: - path: | - C:\Users\runneradmin\AppData\cabal\store + path: ${{ steps.setup-haskell.outputs.cabal-store }} key: ${{ runner.os }}-appdata-cabal-${{ hashFiles('cabal.project') }}-${{ secrets.CACHE_VERSION }} - name: Cache cabal work -- cgit v1.2.3