Skip to content

Commit 9b41b8b

Browse files
mydeaclaude
andcommitted
fix(ci): Re-add enableCrossOsArchive for cache steps
actions/cache needs this flag when caches are saved on the host but restored inside Docker containers, even when both run the same OS. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eea0cf7 commit 9b41b8b

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ runs:
2020
with:
2121
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
2222
key: ${{ steps.compute_lockfile_hash.outputs.hash }}
23+
enableCrossOsArchive: true
2324

2425
- name: Install dependencies
2526
if: steps.cache_dependencies.outputs.cache-hit != 'true'

.github/actions/restore-cache/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ runs:
1515
with:
1616
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
1717
key: ${{ inputs.dependency_cache_key }}
18+
enableCrossOsArchive: true
1819

1920
- name: Restore build artifacts
2021
uses: actions/download-artifact@v4

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ jobs:
879879
with:
880880
path: ${{ github.workspace }}/packages/*/*.tgz
881881
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
882+
enableCrossOsArchive: true
882883

883884
- name: Determine which E2E test applications should be run
884885
id: matrix
@@ -961,6 +962,7 @@ jobs:
961962
with:
962963
path: ${{ github.workspace }}/packages/*/*.tgz
963964
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
965+
enableCrossOsArchive: true
964966

965967
- name: Build tarballs if not cached
966968
if: steps.restore-tarball-cache.outputs.cache-hit != 'true'
@@ -1081,6 +1083,7 @@ jobs:
10811083
with:
10821084
path: ${{ github.workspace }}/packages/*/*.tgz
10831085
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
1086+
enableCrossOsArchive: true
10841087

10851088
- name: Build tarballs if not cached
10861089
if: steps.restore-tarball-cache.outputs.cache-hit != 'true'

.github/workflows/canary.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
with:
6060
path: ${{ env.CACHED_BUILD_PATHS }}
6161
key: canary-${{ env.HEAD_COMMIT }}
62+
enableCrossOsArchive: true
6263
- name: Install dependencies
6364
run: yarn install
6465
- name: Build packages
@@ -163,6 +164,7 @@ jobs:
163164
with:
164165
path: ${{ env.CACHED_BUILD_PATHS }}
165166
key: canary-${{ env.HEAD_COMMIT }}
167+
enableCrossOsArchive: true
166168

167169
- name: Get node version
168170
id: versions

0 commit comments

Comments
 (0)