-
Notifications
You must be signed in to change notification settings - Fork 24.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LOCAL][CI] Require cocoapods to hermes-engine podspec
- Loading branch information
1 parent
50503b0
commit 1810f7d
Showing
1 changed file
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Test All | |
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
@@ -103,7 +104,7 @@ jobs: | |
- name: Setup Hermes workspace | ||
uses: ./.github/actions/setup_hermes_workspace | ||
- name: Hermes apple cache | ||
uses: actions/[email protected] | ||
uses: actions/cache/restore@v4.0.0 | ||
with: | ||
path: ./packages/react-native/sdks/hermes/build_host_hermesc | ||
key: v2-hermesc-apple-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }} | ||
|
@@ -112,6 +113,18 @@ jobs: | |
cd ./packages/react-native/sdks/hermes || exit 1 | ||
. ./utils/build-apple-framework.sh | ||
build_host_hermesc_if_needed | ||
- name: Upload HermesC Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: hermesc-apple | ||
path: ./packages/react-native/sdks/hermes/build_host_hermesc | ||
- name: Cache hermesc apple | ||
uses: actions/cache/[email protected] | ||
if: ${{ github.ref == 'refs/heads/main' }} # To avoid that the cache explode. | ||
with: | ||
path: ./packages/react-native/sdks/hermes/build_host_hermesc | ||
key: v2-hermesc-apple-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }} | ||
enableCrossOsArchive: true | ||
|
||
build_apple_slices_hermes: | ||
runs-on: macos-14 | ||
|
@@ -137,6 +150,11 @@ jobs: | |
with: | ||
hermes-version: ${{ needs.prepare_hermes_workspace.outputs.hermes-version }} | ||
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }} | ||
- name: Restore HermesC Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: hermesc-apple | ||
path: ./packages/react-native/sdks/hermes/build_host_hermesc | ||
- name: Setup Hermes workspace | ||
uses: ./.github/actions/setup_hermes_workspace | ||
- name: Check if the required artifacts already exist | ||
|
@@ -173,10 +191,15 @@ jobs: | |
exit 0 | ||
fi | ||
export RELEASE_VERSION=${{ needs.prepare_hermes_workspace.outputs.react-native-version }} | ||
chmod +x /Users/runner/work/react-native/react-native/packages/react-native/sdks/hermes/build_host_hermesc/bin/hermesc | ||
if [[ "$SLICE" == "macosx" ]]; then | ||
export MAC_DEPLOYMENT_TARGET="10.15" | ||
echo "[HERMES] Building Hermes for MacOS" | ||
BUILD_TYPE="${{ matrix.flavor }}" ./utils/build-mac-framework.sh | ||
else | ||
export IOS_DEPLOYMENT_TARGET="13.4" | ||
export XROS_DEPLOYMENT_TARGET="1.0" | ||
echo "[HERMES] Building Hermes for iOS: $SLICE" | ||
BUILD_TYPE="${{ matrix.flavor }}" ./utils/build-ios-framework.sh "$SLICE" | ||
fi | ||
|