From 05ba20aeaae433cbf0c66180d5dd9d501fe27f6e Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Mon, 1 Sep 2025 11:21:37 +0200 Subject: [PATCH] ci: enable prebuild for react-native --- .github/workflows/build-templates.yml | 3 +++ .../templates/native-common-example/turbo.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-templates.yml b/.github/workflows/build-templates.yml index 5865f7ecb..d4a7cbd1d 100644 --- a/.github/workflows/build-templates.yml +++ b/.github/workflows/build-templates.yml @@ -21,6 +21,8 @@ jobs: XCODE_VERSION: 16.3 TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + RCT_USE_RN_DEP: 1 + RCT_USE_PREBUILT_RNCORE: 1 strategy: fail-fast: false @@ -249,6 +251,7 @@ jobs: uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 with: xcode-version: ${{ env.XCODE_VERSION }} + - name: Install cocoapods if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1 working-directory: ${{ env.work_dir }} diff --git a/packages/create-react-native-library/templates/native-common-example/turbo.json b/packages/create-react-native-library/templates/native-common-example/turbo.json index accd6b31b..4822c1eb4 100644 --- a/packages/create-react-native-library/templates/native-common-example/turbo.json +++ b/packages/create-react-native-library/templates/native-common-example/turbo.json @@ -19,7 +19,7 @@ "outputs": [] }, "build:ios": { - "env": ["RCT_NEW_ARCH_ENABLED"], + "env": ["RCT_NEW_ARCH_ENABLED", "RCT_USE_RN_DEP", "RCT_USE_PREBUILT_RNCORE"], "inputs": [ "package.json", "*.podspec",