Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] upgrade to cache v4 #27898

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/actions/expo-caches/action.yml
Expand Up @@ -75,7 +75,7 @@ runs:
steps:
- name: ♻️ Restore workspace node modules
if: inputs.yarn-workspace == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: workspace-modules-cache
with:
# See "workspaces" → "packages" in the root package.json for the source of truth of
Expand All @@ -91,7 +91,7 @@ runs:

- name: ♻️ Restore /tools node modules and bins
if: inputs.yarn-tools == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: tools-modules-cache
with:
path: |
Expand All @@ -100,37 +100,37 @@ runs:

- name: ♻️ Restore /docs node modules
if: inputs.yarn-docs == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: docs-modules-cache
with:
path: docs/node_modules
key: ${{ runner.os }}-docs-modules-${{ hashFiles('docs/yarn.lock') }}
- name: ♻️ Restore Docs Next cache
if: inputs.yarn-docs == 'true' && steps.docs-modules-cache.outputs.cache-hit == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: docs/.next/cache
key: ${{ runner.os }}-docs-next-${{ hashFiles('docs/yarn.lock') }}-${{ hashFiles('docs/next.config.js') }}

- name: ♻️ Restore ios/Pods from cache
if: inputs.ios-pods == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: ios-pods-cache
with:
path: ios/Pods
key: ${{ runner.os }}-ios-pods-${{ hashFiles('ios/Podfile.lock') }}

- name: ♻️ Restore apps/bare-expo/ios/Pods from cache
if: inputs.bare-expo-pods == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: bare-expo-pods-cache
with:
path: apps/bare-expo/ios/Pods
key: ${{ runner.os }}-bare-expo-pods-${{ hashFiles('apps/bare-expo/ios/Podfile.lock') }}

- name: ♻️ Restore apps/native-tests/ios/Pods from cache
if: inputs.native-tests-pods == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: native-tests-pods-cache
with:
path: apps/native-tests/ios/Pods
Expand All @@ -142,7 +142,7 @@ runs:

- name: ♻️ Restore Android NDK from cache
if: inputs.ndk == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-android-ndk
with:
path: /usr/local/lib/android/sdk/ndk/${{ inputs.ndk-version }}/
Expand All @@ -158,15 +158,15 @@ runs:
run: echo "sha256=$(git lfs ls-files | openssl dgst -sha256)" >> $GITHUB_OUTPUT
shell: bash
- name: ♻️ Restore Git LFS cache
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.git-lfs == 'true'
with:
path: .git/lfs
key: ${{ steps.git-lfs.outputs.sha256 }}

- name: ♻️ Restore hermes-engine AAR cache
if: inputs.hermes-engine-aar == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: android/prebuiltHermes
key: hermes-engine-aar-v2-${{ hashFiles('react-native-lab/react-native/packages/react-native/sdks/.hermesversion') }}
Expand Down Expand Up @@ -205,7 +205,7 @@ runs:
run: echo "REACT_NATIVE_DOWNLOADS_DIR=$HOME/.gradle/react-native-downloads" >> $GITHUB_ENV
- name: ♻️ Restore Gradle downloads cache for React Native libraries
if: inputs.react-native-gradle-downloads == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.REACT_NATIVE_DOWNLOADS_DIR }}
key: gradle-downloads-${{ hashFiles('yarn.lock') }}
Expand Down