Skip to content

Commit

Permalink
share caches across os
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Apr 18, 2023
1 parent 60d92f5 commit d9f2dcb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/all-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
id: dependency-cache
uses: actions/cache@v3
with:
enableCrossOsArchive: true
path: |
~/.yarn/berry/cache
code/node_modules
Expand Down Expand Up @@ -84,6 +85,7 @@ jobs:
~/.yarn/berry/cache
code/node_modules
scripts/node_modules
enableCrossOsArchive: true
key: yarn-v1-${{ runner.os }}-${{ hashFiles('scripts/yarn.lock') }}-${{ hashFiles('code/yarn.lock') }}-${{ github.run_id }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -131,6 +133,7 @@ jobs:
- name: Restore dependencies
uses: actions/cache/restore@v3
with:
enableCrossOsArchive: true
path: |
~/.yarn/berry/cache
code/node_modules
Expand All @@ -141,6 +144,7 @@ jobs:
- name: Restore sandbox ${{ matrix.template }}
uses: actions/cache/restore@v3
with:
enableCrossOsArchive: true
path: sandbox
key: sandbox-v1-${{ matrix.template }}-${{ github.run_id }}
fail-on-cache-miss: true
Expand Down Expand Up @@ -187,13 +191,15 @@ jobs:
~/.yarn/berry/cache
code/node_modules
scripts/node_modules
enableCrossOsArchive: true
key: yarn-v1-${{ runner.os }}-${{ hashFiles('scripts/yarn.lock') }}-${{ hashFiles('code/yarn.lock') }}-${{ github.run_id }}
fail-on-cache-miss: true

- name: Restore sandbox ${{ matrix.template }}
uses: actions/cache/restore@v3
with:
path: sandbox
enableCrossOsArchive: true
key: sandbox-v1-${{ matrix.template }}-${{ github.run_id }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -226,13 +232,15 @@ jobs:
~/.yarn/berry/cache
code/node_modules
scripts/node_modules
enableCrossOsArchive: true
key: yarn-v1-${{ runner.os }}-${{ hashFiles('scripts/yarn.lock') }}-${{ hashFiles('code/yarn.lock') }}-${{ github.run_id }}
fail-on-cache-miss: true

- name: Restore sandbox ${{ matrix.template }}
uses: actions/cache/restore@v3
with:
path: sandbox
enableCrossOsArchive: true
key: sandbox-v1-${{ matrix.template }}-${{ github.run_id }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -265,13 +273,15 @@ jobs:
~/.yarn/berry/cache
code/node_modules
scripts/node_modules
enableCrossOsArchive: true
key: yarn-v1-${{ runner.os }}-${{ hashFiles('scripts/yarn.lock') }}-${{ hashFiles('code/yarn.lock') }}-${{ github.run_id }}
fail-on-cache-miss: true

- name: Restore sandbox ${{ matrix.template }}
uses: actions/cache/restore@v3
with:
path: sandbox
enableCrossOsArchive: true
key: sandbox-v1-${{ matrix.template }}-${{ github.run_id }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -304,13 +314,15 @@ jobs:
~/.yarn/berry/cache
code/node_modules
scripts/node_modules
enableCrossOsArchive: true
key: yarn-v1-${{ runner.os }}-${{ hashFiles('scripts/yarn.lock') }}-${{ hashFiles('code/yarn.lock') }}-${{ github.run_id }}
fail-on-cache-miss: true

- name: Restore sandbox ${{ matrix.template }}
uses: actions/cache/restore@v3
with:
path: sandbox
enableCrossOsArchive: true
key: sandbox-v1-${{ matrix.template }}-${{ github.run_id }}
fail-on-cache-miss: true

Expand Down

0 comments on commit d9f2dcb

Please sign in to comment.