Skip to content

Commit

Permalink
[ci] upgrade to cache v4 (#27898)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrandwijk committed Mar 27, 2024
1 parent a7302d9 commit a7165e1
Showing 1 changed file with 11 additions and 11 deletions.
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

0 comments on commit a7165e1

Please sign in to comment.