From b21512de424224e948499757537b12e026a66214 Mon Sep 17 00:00:00 2001 From: Philippe Faist Date: Wed, 11 Dec 2024 15:59:07 +0100 Subject: [PATCH] better cache handling in gh actions? --- .github/workflows/build-and-deploy-site.yml | 11 ++++++----- .github/workflows/devsite-build-and-deploy.yml | 11 ++++++----- .github/workflows/quick-test-compile-zoo.yml | 11 ++++++----- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-and-deploy-site.yml b/.github/workflows/build-and-deploy-site.yml index d926e05bc..092a4e297 100644 --- a/.github/workflows/build-and-deploy-site.yml +++ b/.github/workflows/build-and-deploy-site.yml @@ -61,8 +61,8 @@ jobs: with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }} - restore-keys: | - yarn-cache-folder- + #restore-keys: | + # yarn-cache-folder- # Cache citation information (downloaded information & compiled citations) @@ -70,9 +70,10 @@ jobs: uses: actions/cache@v3 with: path: eczoo_sitegen/_zoodb_citations_cache_LOCAL - key: zoodb-citations-cache-LOCAL-${{ github.sha }}-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - zoodb-citations-cache-LOCAL- + #key: zoodb-citations-cache-LOCAL-${{ github.sha }}-${{ hashFiles('**/yarn.lock') }} + key: zoodb-citations-cache-LOCAL + #restore-keys: | + # zoodb-citations-cache-LOCAL- - name: Initialize local citation information cache if applicable run: | diff --git a/.github/workflows/devsite-build-and-deploy.yml b/.github/workflows/devsite-build-and-deploy.yml index 76c687bd6..45aa55cd0 100644 --- a/.github/workflows/devsite-build-and-deploy.yml +++ b/.github/workflows/devsite-build-and-deploy.yml @@ -90,8 +90,8 @@ jobs: with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }} - restore-keys: | - yarn-cache-folder- + #restore-keys: | + # yarn-cache-folder- # Cache citation information (downloaded information & compiled citations) @@ -99,9 +99,10 @@ jobs: uses: actions/cache@v3 with: path: eczoo_sitegen/_zoodb_citations_cache_LOCAL - key: devsite-zoodb-citations-cache-LOCAL-${{ hashFiles('ECZOO_DEVSITE_INFO.txt') }}-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - devsite-zoodb-citations-cache-LOCAL- + #key: devsite-zoodb-citations-cache-LOCAL-${{ hashFiles('ECZOO_DEVSITE_INFO.txt') }}-${{ hashFiles('**/yarn.lock') }} + key: devsite-zoodb-citations-cache-LOCAL + #restore-keys: | + # devsite-zoodb-citations-cache-LOCAL- - name: Initialize local citation information cache if applicable run: | diff --git a/.github/workflows/quick-test-compile-zoo.yml b/.github/workflows/quick-test-compile-zoo.yml index 54a288827..7ce7f255e 100644 --- a/.github/workflows/quick-test-compile-zoo.yml +++ b/.github/workflows/quick-test-compile-zoo.yml @@ -57,8 +57,8 @@ jobs: with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }} - restore-keys: | - yarn-cache-folder- + #restore-keys: | + # yarn-cache-folder- # Cache citation information (downloaded information & compiled citations) @@ -66,9 +66,10 @@ jobs: uses: actions/cache@v3 with: path: eczoo_sitegen/_zoodb_citations_cache_LOCAL - key: zoodb-citations-cache-LOCAL-${{ github.sha }}-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - zoodb-citations-cache-LOCAL- + #key: zoodb-citations-cache-LOCAL-${{ github.sha }}-${{ hashFiles('**/yarn.lock') }} + key: zoodb-citations-cache-LOCAL + #restore-keys: | + # zoodb-citations-cache-LOCAL- - name: Initialize local citation information cache if applicable run: |