mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[RN][Releases] Fix build codegen
This commit is contained in:
@@ -224,17 +224,16 @@ async function testRNTester(
|
||||
ciArtifacts /*:Unwrap<ReturnType<typeof setupGHAArtifacts>> */,
|
||||
onReleaseBranch /*: boolean */,
|
||||
) {
|
||||
// Build Codegen as we're on a empty environment and metro needs it.
|
||||
// This can be removed once we have codegen hooked in the `yarn build` step.
|
||||
console.info('[Codegen] >>> Building react-native-codegen...');
|
||||
exec('./packages/react-native-codegen/scripts/oss/build.sh');
|
||||
|
||||
// FIXME: make sure that the commands retains colors
|
||||
// (--ansi) doesn't always work
|
||||
// see also https://github.com/shelljs/shelljs/issues/86
|
||||
pushd('packages/rn-tester');
|
||||
|
||||
// Build Codegen as we're on a empty environment and metro needs it.
|
||||
// This can be removed once we have codegen hooked in the `yarn build` step.
|
||||
exec(
|
||||
'../../gradlew :packages:react-native:ReactAndroid:buildCodegenCLI --quiet',
|
||||
);
|
||||
|
||||
if (argv.platform === 'ios') {
|
||||
await testRNTesterIOS(ciArtifacts, onReleaseBranch);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user