mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d224e8c911
Summary: This pull request converts the CircleCI workflows to GitHub actions workflows. This change only inlcudes the mac and ios build and test jobs. ## Changelog: [Internal] - Migrate iOS to github actions Pull Request resolved: https://github.com/facebook/react-native/pull/44032 Test Plan: [Here is the latest workflow run in my fork](https://github.com/robandpdx-org/react-native/actions/runs/8637660560). --- https://fburl.com/workplace/f6mz6tmw Reviewed By: NickGerleman Differential Revision: D56581393 Pulled By: cipolleschi fbshipit-source-id: a806b1a274e3d86c03e66a543360a800187855e4
29 lines
1.0 KiB
YAML
29 lines
1.0 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
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: See commands.yml with_xcodebuild_cache
|
|
shell: bash
|
|
run: echo "See commands.yml with_xcodebuild_cache"
|
|
- name: Prepare Xcodebuild cache
|
|
shell: bash
|
|
run: |
|
|
WEEK=$(date +"%U")
|
|
YEAR=$(date +"%Y")
|
|
echo "$WEEK-$YEAR" > /tmp/week_year
|
|
- name: Cache podfile lock
|
|
uses: actions/cache@v4.0.0
|
|
with:
|
|
path: packages/rn-tester/Podfile.lock
|
|
key: v9-podfilelock-${{ github.job }}-${{ hashfiles('packages/rn-tester/Podfile') }}-{{ hashfiles('/tmp/week_year') }}-${{ inputs.hermes-version}}
|
|
- name: Cache cocoapods
|
|
uses: actions/cache@v4.0.0
|
|
with:
|
|
path: packages/rn-tester/Pods
|
|
key: v11-cocoapods-${{ github.job }}-${{ hashfiles('packages/rn-tester/Podfile.lock') }}-{{ hashfiles('packages/rn-tester/Podfile') }}-${{ inputs.hermes-version}}
|