Skip to content

Commit aa37f9e

Browse files
test produced packages
1 parent 280e5e2 commit aa37f9e

File tree

4 files changed

+71
-5
lines changed

4 files changed

+71
-5
lines changed

.github/workflows/pr_master.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@ jobs:
2222
package:
2323
needs: [build-typescript]
2424
uses: ./.github/workflows/package.yml
25+
26+
test-package-ios:
27+
needs: [package]
28+
uses: ./.github/workflows/test_ios.yml
29+
30+
test-package-android:
31+
needs: [package]
32+
uses: ./.github/workflows/test_android.yml

.github/workflows/test_android.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'build test android'
2+
3+
on:
4+
workflow_call
5+
6+
jobs:
7+
build-test-android:
8+
runs-on: macos-latest
9+
steps:
10+
- name: Checkout Repo
11+
uses: actions/[email protected]
12+
13+
- name: Download artifact
14+
uses: actions/download-artifact@v4
15+
with:
16+
name: BabylonReactNative
17+
path: .
18+
- name: Install build package
19+
run: |
20+
unzip ../../BabylonReactNative.zip
21+
npm install ../../babylonjs-react-native-0.0.1.tgz
22+
working-directory: ./Apps/Playground
23+
24+
- name: Gulp (Android)
25+
run: npx gulp buildAndroid
26+
working-directory: ./Package
27+

.github/workflows/test_ios.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'build test ios'
2+
3+
on:
4+
workflow_call
5+
6+
jobs:
7+
build-test-iOS:
8+
runs-on: macos-latest
9+
steps:
10+
- name: Checkout Repo
11+
uses: actions/[email protected]
12+
13+
- name: Download artifact
14+
uses: actions/download-artifact@v4
15+
with:
16+
name: BabylonReactNative
17+
path: .
18+
- name: Install build package
19+
run: |
20+
unzip ../../BabylonReactNative.zip
21+
npm install ../../babylonjs-react-native-0.0.1.tgz
22+
working-directory: ./Apps/Playground
23+
24+
- name: Clean and Install Pods
25+
run: |
26+
cd ios
27+
rm -rf Pods Podfile.lock
28+
pod install
29+
working-directory: ./Apps/Playground
30+
31+
- name: Gulp (iOS)
32+
run: npx gulp buildIOS
33+
working-directory: ./Package

Modules/@babylonjs/react-native/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,16 @@
2424
"license": "MIT",
2525
"licenseFilename": "LICENSE",
2626
"readmeFilename": "README.md",
27-
"dependencies": {
28-
"base-64": "^0.1.0",
29-
"semver": "^7.3.2",
30-
"cmake-runtime": "3.31.0"
31-
},
3227
"peerDependencies": {
3328
"@babylonjs/core": ">=5.53.1",
3429
"react": "*",
3530
"react-native": "*",
3631
"react-native-permissions": ">=3.0.0"
3732
},
3833
"devDependencies": {
34+
"base-64": "^0.1.0",
35+
"semver": "^7.3.2",
36+
"cmake-runtime": "3.31.0",
3937
"@babel/core": "^7.8.4",
4038
"@babel/runtime": "^7.8.4",
4139
"@babylonjs/core": ">=5.53.1",

0 commit comments

Comments
 (0)