Skip to content

Commit

Permalink
better cache handling in gh actions?
Browse files Browse the repository at this point in the history
  • Loading branch information
phfaist committed Dec 11, 2024
1 parent f34f472 commit b21512d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-and-deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,19 @@ 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)

- name: Restore citations information cache
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: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/devsite-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,19 @@ 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)

- name: Restore citations information cache
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: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/quick-test-compile-zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,19 @@ 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)

- name: Restore citations information cache
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: |
Expand Down

0 comments on commit b21512d

Please sign in to comment.