Skip to content

Commit 69c0e80

Browse files
paths and assemble
1 parent 9085084 commit 69c0e80

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/typescript.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ jobs:
2121
- name: NPM Install (Binary Package)
2222
run: npm install
2323
working-directory: ./Package
24-
- name: Build BabylonNative source tree
25-
run: npx gulp buildBabylonNativeSourceTree
26-
working-directory: ./Package
2724
- name: NPM Install (Modules)
28-
run: npm install
25+
run: |
26+
export BABYLON_NO_CMAKE_POSTINSTALL=1
27+
npm install
2928
working-directory: ./Modules/@babylonjs/react-native
3029
- name: NPM Install (Playground)
3130
run: npm install
3231
working-directory: ./Apps/Playground
33-
3432
- name: Gulp
3533
run: npx gulp buildAssembled
3634
working-directory: ./Package

Modules/@babylonjs/react-native/postinstall.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ function iosCMake() {
2424
'-DFETCHCONTENT_SOURCE_DIR_IOS-CMAKE=./shared/BabylonNative/deps/ios-cmake-src'
2525
], { stdio: 'inherit' });
2626

27-
2827
cmake.on('exit', code => {
2928
if (code !== 0) {
3029
console.error(`CMake exited with code ${code}`);
@@ -34,7 +33,10 @@ function iosCMake() {
3433
}
3534

3635
function postInstall() {
37-
if (os.platform() === "darwin") {
36+
if (
37+
os.platform() === "darwin" &&
38+
process.env.BABYLON_NO_CMAKE_POSTINSTALL !== "1"
39+
) {
3840
iosCMake();
3941
}
4042
}

Modules/@babylonjs/react-native/react-native-babylon.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
66

77
podspec_dir = File.dirname(__FILE__)
88
base_base_path = File.expand_path('../../../node_modules/@babylonjs/react-native/Build/iOS', podspec_dir)
9-
base_base_path_symlink = File.expand_path('../../../Modules/@babylonjs/react-native/Build/iOS', podspec_dir)
9+
base_base_path_symlink = File.expand_path('../../../../../Modules/@babylonjs/react-native/Build/iOS', podspec_dir)
1010
babylon_base_path = File.join(base_base_path, 'shared/BabylonNative/Repo')
1111
babylon_base_path_symlink = File.join(base_base_path_symlink, 'shared/BabylonNative/Repo')
1212

Package/gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ const buildBabylonNativeSourceTree = async () => {
382382
}
383383

384384
const copyFiles = gulp.parallel(copyCommonFiles, copySharedFiles, copyIOSFiles, copyAndroidFiles, copyWindowsFiles);
385-
const buildAssembled = gulp.series(copyFiles, buildTypeScript, validateAssembled);
385+
const buildAssembled = gulp.series(buildBabylonNativeSourceTree, copyFiles, buildTypeScript, validateAssembled);
386386
const buildIOS = gulp.series(buildIphoneOS, buildIphoneSimulator);
387387

388388
exports.buildAssembled = buildAssembled;

0 commit comments

Comments
 (0)