Skip to content

Commit fc4f151

Browse files
committed
fix: CICD build script
1 parent 82166ef commit fc4f151

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/actions/build-app/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ runs:
8080
yarn add ${{ inputs.module-to-install }}
8181
fi
8282
83+
if [[ '${{ inputs.platform }}' == 'ios' ]]; then
84+
# Use xcode 16 for RN 0.80+
85+
if [[ '${{ inputs.rn-ver }}' == "0.8"* || "${{ inputs.rn-ver }}" == "latest" ]]; then
86+
sudo xcode-select --switch /Applications/Xcode_16.2.app/Contents/Developer
87+
fi
88+
fi
89+
8390
# Debug info
8491
npx @react-native-community/cli info
8592
@@ -100,6 +107,11 @@ runs:
100107
sed -i 's/newArchEnabled=false/newArchEnabled=true/' android/gradle.properties
101108
fi
102109
110+
# Fix: generate codegen artifacts for RN 0.80 only
111+
if [[ '${{ inputs.rn-ver }}' == "0.80"* ]]; then
112+
./android/gradlew generateCodegenArtifactsFromSchema -p android
113+
fi
114+
103115
# Build Android
104116
./android/gradlew assembleRelease --no-daemon -p android -PreactNativeArchitectures=${{ inputs.arch }}
105117

0 commit comments

Comments
 (0)