@@ -91,12 +91,15 @@ jobs:
9191 - name : Build slice ${{ matrix.slice }} for ${{ matrix.flavor }}
9292 if : steps.restore-slice-folder.outputs.cache-hit != 'true'
9393 run : node scripts/releases/prepare-ios-prebuilds.js -b -p ${{ matrix.slice }} -r ${{ matrix.flavor }}
94+ - name : Compress slice to preserve symlinks
95+ run : |
96+ tar -czf "$RUNNER_TEMP/prebuild-slice-${{ matrix.flavor }}-${{ matrix.slice }}.tar.gz" \
97+ -C packages/react-native/third-party/.build/Build/Products .
9498 - name : Upload Artifacts
9599 uses : ./.github/actions/upload-artifact
96100 with :
97101 name : prebuild-slice-${{ matrix.flavor }}-${{ matrix.slice }}
98- path : |
99- packages/react-native/third-party/.build/Build/Products
102+ path : ${{ runner.temp }}/prebuild-slice-${{ matrix.flavor }}-${{ matrix.slice }}.tar.gz
100103 - name : Save Cache
101104 uses : actions/cache/save@v5
102105 if : ${{ github.ref == 'refs/heads/main' && steps.restore-slice-folder.outputs.cache-hit != 'true' }}
@@ -147,8 +150,15 @@ jobs:
147150 uses : ./.github/actions/download-artifact
148151 with :
149152 pattern : prebuild-slice-${{ matrix.flavor }}-*
150- path : packages/react-native/third-party/.build/Build/Products
153+ path : ${{ runner.temp }}/prebuild-slices
151154 merge-multiple : true
155+ - name : Extract slices
156+ if : steps.restore-xcframework.outputs.cache-hit != 'true'
157+ run : |
158+ mkdir -p packages/react-native/third-party/.build/Build/Products
159+ for archive in "$RUNNER_TEMP"/prebuild-slices/*.tar.gz; do
160+ tar -xzf "$archive" -C packages/react-native/third-party/.build/Build/Products
161+ done
152162 - name : Setup Keychain
153163 if : ${{ steps.restore-xcframework.outputs.cache-hit != 'true' && env.REACT_ORG_CODE_SIGNING_P12_CERT != '' }}
154164 uses : apple-actions/import-codesign-certs@v3 # https://github.com/marketplace/actions/import-code-signing-certificates
0 commit comments