Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions .github/workflows/prebuild-ios-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ on:
default: false

jobs:
build-rn-slice:
runs-on: xcode-27
strategy:
fail-fast: false
matrix:
flavor: ['Debug', 'Release']
slice: ['ios', 'ios-simulator', 'mac-catalyst']
resolve-hermes-version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.hermes-version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set Hermes version
id: hermes-version
shell: bash
env:
USE_HERMES_PREBUILT: ${{ inputs.use-hermes-prebuilt }}
Expand All @@ -36,7 +34,21 @@ jobs:
HERMES_VERSION=$(sed -n 's/^HERMES_VERSION_NAME=//p' packages/react-native/sdks/hermes-engine/version.properties)
fi
test -n "$HERMES_VERSION"
echo "HERMES_VERSION=$HERMES_VERSION" >> "$GITHUB_ENV"
echo "version=$HERMES_VERSION" >> "$GITHUB_OUTPUT"
build-rn-slice:
runs-on: xcode-27
needs: resolve-hermes-version
env:
HERMES_VERSION: ${{ needs.resolve-hermes-version.outputs.version }}
strategy:
fail-fast: false
matrix:
flavor: ['Debug', 'Release']
slice: ['ios', 'ios-simulator', 'mac-catalyst']
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Restore cache if present
id: restore-ios-slice
if: inputs.version-type == ''
Expand Down Expand Up @@ -122,29 +134,18 @@ jobs:
compose-xcframework:
runs-on: xcode-27
needs: [build-rn-slice]
needs: [resolve-hermes-version, build-rn-slice]
strategy:
fail-fast: false
matrix:
flavor: ['Debug', 'Release']
env:
HERMES_VERSION: ${{ needs.resolve-hermes-version.outputs.version }}
REACT_ORG_CODE_SIGNING_P12_CERT: ${{ secrets.REACT_ORG_CODE_SIGNING_P12_CERT }}
REACT_ORG_CODE_SIGNING_P12_CERT_PWD: ${{ secrets.REACT_ORG_CODE_SIGNING_P12_CERT_PWD }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set Hermes version
shell: bash
env:
USE_HERMES_PREBUILT: ${{ inputs.use-hermes-prebuilt }}
run: |
if [ "$USE_HERMES_PREBUILT" == "true" ]; then
HERMES_VERSION=$(curl --fail --silent --show-error --retry 3 https://registry.npmjs.org/hermes-compiler/latest-v1 | jq -er '.version')
else
HERMES_VERSION=$(sed -n 's/^HERMES_VERSION_NAME=//p' packages/react-native/sdks/hermes-engine/version.properties)
fi
test -n "$HERMES_VERSION"
echo "HERMES_VERSION=$HERMES_VERSION" >> "$GITHUB_ENV"
- name: Restore cache if present
id: restore-ios-xcframework
if: inputs.version-type == ''
Expand Down
Loading