From b30dd4e70778011d30b480bba838bc3bc10349ee Mon Sep 17 00:00:00 2001 From: MDW Date: Mon, 4 Mar 2024 18:28:24 +0100 Subject: [PATCH] Fix: Cache issue in windows-ci - add enableCrossOsArchive (#28607) # Fix: Cache issue in windows-ci - add enableCrossOsArchive There is an issue in actions/cache on windows and adding 'enableCrossOsArchive: true' should fix it according to https://github.com/actions/cache/issues/1275#issuecomment-1925217178 --- .github/workflows/windows-ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/windows-ci.yaml b/.github/workflows/windows-ci.yaml index 3584aa5ab07..c0e44dbb74f 100644 --- a/.github/workflows/windows-ci.yaml +++ b/.github/workflows/windows-ci.yaml @@ -55,6 +55,8 @@ jobs: id: cache uses: actions/cache/restore@v4 with: + # See https://github.com/actions/cache/issues/1275#issuecomment-1925217178 + enableCrossOsArchive: true path: | db_init.sql db_init.sql.md5 @@ -166,5 +168,7 @@ jobs: uses: actions/cache/save@v4 if: ${{ ! cancelled() }} with: + # See https://github.com/actions/cache/issues/1275#issuecomment-1925217178 + enableCrossOsArchive: true key: ${{ steps.cache.outputs.cache-primary-key }} path: db_init.*