From a179a5a4b2a03c058deec3d016aa5520580b47cb Mon Sep 17 00:00:00 2001 From: Aleksandr Penskoi Date: Sat, 26 Oct 2024 22:41:28 +0200 Subject: [PATCH] fix --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdf07a5..dd6ae0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,9 +88,21 @@ jobs: uses: actions/checkout@v4 - uses: actions/cache@v4 - name: Cache ~/.stack + name: Cache ~/.stack (Windows) + if: matrix.os == "windows-latest" + with: + path: | + C:\Users\runneradmin\AppData\Local\Programs\stack + D:\a\wrench\wrench\.stack-work + key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }} + restore-keys: | + ${{ runner.os }}-stack-global- + + - uses: actions/cache@v4 + name: Cache ~/.stack (Windows) + if: matrix.os == "ubuntu-latest" with: - path: ${{ runner.os == 'Windows' && 'C:\Users\runneradmin\AppData\Local\Programs\stack' || '~/.stack' }} + path: '~/.stack' key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }} restore-keys: | ${{ runner.os }}-stack-global-