mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
42052940ea
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49791 The cache for RNTester is broken because the matrix parameters used to test RNTester are not part of the job_id that is used to create the cache keys to restore the Podfile.lock. This means that we have a race condition on which job of the matrix manages to save the cache. However, those caches are not always valid for the other jobs that presents different matrix parameters. This change should fix the issue. ## Changelog: [Internal] - Fix test-rn-tester cache Cache Reviewed By: cortinico Differential Revision: D70493507 fbshipit-source-id: 1db6e00507b3e9abe4400831ee1b048c620b9102
39 lines
1.5 KiB
YAML
39 lines
1.5 KiB
YAML
name: setup-xcode-build-cache
|
|
description: Add caching to iOS jobs to speed up builds
|
|
inputs:
|
|
hermes-version:
|
|
description: The version of hermes
|
|
required: true
|
|
jsengine:
|
|
dscription: The js engine in use
|
|
default: Hermes
|
|
flavor:
|
|
description: The flavor that is going to be built
|
|
default: Debug
|
|
architecture:
|
|
description: The architecture that is going to be built
|
|
default: NewArch
|
|
use-frameworks:
|
|
description: Whether we are bulding with DynamicFrameworks or StaticLibraries
|
|
default: StaticLibraries
|
|
ruby-version:
|
|
description: The ruby version we are going to use
|
|
default: 2.6.10
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: See commands.yml with_xcodebuild_cache
|
|
shell: bash
|
|
run: echo "See commands.yml with_xcodebuild_cache"
|
|
- name: Cache podfile lock
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: packages/rn-tester/Podfile.lock
|
|
key: v11-podfilelock-${{ github.job }}-${{ inputs.architecture }}-${{ inputs.jsengine }}-${{ inputs.flavor }}-${{ inputs.use-frameworks }}-${{ inputs.ruby-version }}-${{ hashfiles('packages/rn-tester/Podfile') }}-${{ inputs.hermes-version }}
|
|
- name: Cache cocoapods
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: packages/rn-tester/Pods
|
|
key: v13-cocoapods-${{ github.job }}-${{ inputs.architecture }}-${{ inputs.jsengine }}-${{ inputs.flavor }}-${{ inputs.use-frameworks }}-${{ inputs.ruby-version }}-${{ hashfiles('packages/rn-tester/Podfile.lock') }}-${{ hashfiles('packages/rn-tester/Podfile') }}-${{ inputs.hermes-version}}
|