From 735a043fd53e40be14324f16ee8ba5548434f7bc Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Sun, 8 Dec 2019 23:45:30 +0100 Subject: [PATCH] Invalidate MSYS2 cache based on week number --- .github/workflows/windows.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e975947e..4e5d7f9c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -29,12 +29,18 @@ jobs: CHERE_INVOKING: yes steps: - uses: actions/checkout@v1 + - name: Get Date + id: get-date + shell: bash + run: echo ::set-output name=date::$(date +%Y-%W) - uses: actions/cache@v1 id: cache-msys2 + # As of December 2019, GitHub cache size is not big enough to hold + # whole MSYS2 Clang installation. if: matrix.conf.compiler == 'GCC' with: path: 'C:/tools/msys64' - key: msys2-${{ matrix.conf.compiler }}-${{ matrix.conf.bits }}-2019-v11} + key: msys2-${{ matrix.conf.compiler }}-${{ matrix.conf.bits }}-${{ steps.get-date.outputs.date }} - name: Install MSYS2 if: steps.cache-msys2.outputs.cache-hit != 'true' run: choco install msys2 --no-progress