Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BabylonReactNative Basekit frontend package #615

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
73de5ac
append_release action
CedricGuillemet Oct 18, 2023
069dcb4
compress id must be unique
CedricGuillemet Oct 18, 2023
3cc8a96
reduce folder depth for tgz
CedricGuillemet Oct 20, 2023
9405baf
react-native-basekit
CedricGuillemet Oct 20, 2023
0a773ce
configuration and error handling
CedricGuillemet Oct 20, 2023
160ef8f
fix windows vcxproj
CedricGuillemet Oct 23, 2023
6455983
publish
CedricGuillemet Oct 24, 2023
6d72317
append_release for publishing check
CedricGuillemet Oct 24, 2023
009e40b
npm cache
CedricGuillemet Oct 24, 2023
96c21bf
test append to release
CedricGuillemet Oct 24, 2023
c2fa580
preview parameter check
CedricGuillemet Oct 24, 2023
d56ae83
breaking if
CedricGuillemet Oct 24, 2023
cf0d89d
testing boolean
CedricGuillemet Oct 24, 2023
bbcc38c
Merge branch 'master' into AppendRelease
CedricGuillemet Oct 24, 2023
f174f2f
Merge branch 'master' of https://github.com/BabylonJS/BabylonReactNat…
CedricGuillemet Oct 25, 2023
af5ba6a
rework install script
CedricGuillemet Oct 25, 2023
6a13be3
Merge branch 'AppendRelease' of https://github.com/cedricguillemet/Ba…
CedricGuillemet Oct 25, 2023
47bc45b
set java 17 as java 18 is not compatible with android projects
CedricGuillemet Oct 25, 2023
b857f1b
Readme and version check
CedricGuillemet Oct 25, 2023
534eda4
removed dry run for publish
CedricGuillemet Oct 25, 2023
648c79f
installation configuration
CedricGuillemet Oct 25, 2023
b752264
basekit package version set to 0.0.1
CedricGuillemet Oct 26, 2023
ce9bc16
feedback
CedricGuillemet Oct 27, 2023
386b677
tabs replaced with spaces
CedricGuillemet Nov 8, 2023
de255c6
missing java setup
CedricGuillemet Nov 8, 2023
6b4b76d
tar command
CedricGuillemet Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 154 additions & 0 deletions .github/workflows/append_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
name: 'Append Release'
bghgary marked this conversation as resolved.
Show resolved Hide resolved

on:
workflow_call:
inputs:
release-name:
required: true
type: string
is-preview:
required: true
type: boolean
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Download Assembled Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled'
path: Package/react-native

- name: Compress Package react-native
run: |
tar --exclude='readme.md' --exclude='package.json' -czvf react-native.tar.gz -C Package/react-native/ .

- name: Download Assembled-BaseKit-iOSAndroid 0.69 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-iOSAndroid0.69'
path: Package/iOSAndroid0.69
- name: Compress Package iOSAndroid0.69
uses: a7ul/[email protected]
id: compressiosandroid069
with:
command: c
cwd: Package/iOSAndroid0.69/
files: |
android
ios
react-native-babylon.podspec
outPath: iOSAndroid0.69.tar.gz

- name: Download Assembled-BaseKit-iOSAndroid 0.70 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-iOSAndroid0.70'
path: Package/iOSAndroid0.70
- name: Compress Package iOSAndroid0.70
uses: a7ul/[email protected]
id: compressiosandroid070
with:
command: c
cwd: Package/iOSAndroid0.70/
files: |
android
ios
react-native-babylon.podspec
outPath: iOSAndroid0.70.tar.gz

- name: Download Assembled-BaseKit-iOSAndroid 0.71 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-iOSAndroid0.71'
path: Package/iOSAndroid0.71
- name: Compress Package iOSAndroid0.71
uses: a7ul/[email protected]
id: compressiosandroid071
with:
command: c
cwd: Package/iOSAndroid0.71/
files: |
android
ios
react-native-babylon.podspec
outPath: iOSAndroid0.71.tar.gz

- name: Download Assembled-BaseKit-Windows 0.69 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-Windows0.69'
path: Package/Windows0.69
- name: Compress Package Windows0.69
uses: a7ul/[email protected]
id: compresswindows069
with:
command: c
cwd: Package/Windows0.69/
files: |
windows
index.ts
outPath: Windows0.69.tar.gz

- name: Download Assembled-BaseKit-Windows 0.70 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-Windows0.70'
path: Package/Windows0.70
- name: Compress Package Windows0.70
uses: a7ul/[email protected]
id: compresswindows070
with:
command: c
cwd: Package/Windows0.70/
files: |
windows
index.ts
outPath: Windows0.70.tar.gz

- name: Download Assembled-BaseKit-Windows 0.71 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-Windows0.71'
path: Package/Windows0.71
- name: Compress Package Windows0.71
uses: a7ul/[email protected]
id: compresswindows071
with:
command: c
cwd: Package/Windows0.71/
files: |
windows
index.ts
outPath: Windows0.71.tar.gz

- name: Preview Release
if: ${{ inputs.is-preview == true }}
uses: softprops/action-gh-release@v1
with:
files: |
react-native.tar.gz
Windows0.69.tar.gz
Windows0.70.tar.gz
Windows0.71.tar.gz
iOSAndroid0.69.tar.gz
iOSAndroid0.70.tar.gz
iOSAndroid0.71.tar.gz
tag_name: ${{ inputs.release-name }}
name: ${{ inputs.release-name }}
body: "Preview release for ${{ inputs.release-name }}"
bghgary marked this conversation as resolved.
Show resolved Hide resolved
draft: true
prerelease: true

- name: Release
if: ${{ inputs.is-preview == false }}
uses: softprops/action-gh-release@v1
with:
files: |
react-native.tar.gz
Windows0.69.tar.gz
Windows0.70.tar.gz
Windows0.71.tar.gz
iOSAndroid0.69.tar.gz
iOSAndroid0.70.tar.gz
iOSAndroid0.71.tar.gz
6 changes: 6 additions & 0 deletions .github/workflows/bn_master_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
- name: NPM Install (Binary Package)
run: npm install
working-directory: ./Package
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: Gulp (Android)
run: npx gulp buildAndroid
working-directory: ./Package
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ios_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
run: brew install ninja
- name: 'Select XCode ${{ inputs.xcode-version }}'
run: sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-version }}.app/Contents/Developer
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: NPM Install (Playground)
run: npm install
working-directory: ./Apps/Playground
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
- name: NPM Install (Binary Package)
run: npm install
working-directory: ./Package
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: Gulp (Android)
run: npx gulp buildAndroid
working-directory: ./Package
Expand Down Expand Up @@ -80,6 +86,12 @@ jobs:
cmake-version: '3.26.3'
- name: Setup Ninja
run: brew install ninja
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: NPM Install (Playground)
run: npm install
working-directory: ./Apps/Playground
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ jobs:
with:
release-version: ${GITHUB_REF/refs\/tags\//}

append-release:
needs: [build-typescript, build-android-ios-069, build-android-ios-070, build-android-ios-071, build-windows-069, build-windows-070, build-windows-071]
uses: ./.github/workflows/append_release.yml
with:
release-name: ${GITHUB_REF/refs\/tags\//}
is-preview: false

package:
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-android-ios-070, build-android-ios-071, build-windows-064, build-windows-065, build-windows-069, build-windows-070, build-windows-071]
runs-on: macos-latest
Expand Down Expand Up @@ -292,5 +299,13 @@ jobs:
npm version --no-git-tag-version ${GITHUB_REF/refs\/tags\//}
npm publish --access public
working-directory: ./Package/Assembled-BaseKit-Windows0.71
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# ROOT Basekit package
- name: Version & Publish Package @babylonjs/react-native-basekit
run: |
npm version --no-git-tag-version ${GITHUB_REF/refs\/tags\//}
npm publish --access public
working-directory: ./Modules/@babylonjs/react-native-basekit
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/publish_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ jobs:
with:
release-version: ${{ github.event.inputs.release_version }}

append-release:
needs: [build-typescript, build-android-ios-069, build-android-ios-070, build-android-ios-071, build-windows-069, build-windows-070, build-windows-071]
uses: ./.github/workflows/append_release.yml
with:
release-name: ${{ github.event.inputs.release_version }}
is-preview: true

package:
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-android-ios-070, build-android-ios-071, build-windows-064, build-windows-065, build-windows-069, build-windows-070, build-windows-071]
runs-on: macos-latest
Expand Down Expand Up @@ -309,5 +316,13 @@ jobs:
npm version --no-git-tag-version ${{ github.event.inputs.release_version }}
npm publish --access public --tag ${{ github.event.inputs.NPM_tag }} ${{ github.event.inputs.NPM_publish_arg }}
working-directory: ./Package/Assembled-BaseKit-Windows0.71
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# ROOT Basekit package
- name: Version & Publish Package @babylonjs/react-native-basekit
run: |
npm version --no-git-tag-version ${{ github.event.inputs.release_version }}
npm publish --access public --tag ${{ github.event.inputs.NPM_tag }} ${{ github.event.inputs.NPM_publish_arg }}
working-directory: ./Modules/@babylonjs/react-native-basekit
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/test_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: Build Playground Android
run: |
npm uninstall -g react-native-cli @react-native-community/cli
Expand Down
1 change: 1 addition & 0 deletions Modules/@babylonjs/react-native-basekit/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
51 changes: 51 additions & 0 deletions Modules/@babylonjs/react-native-basekit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# OSX
#
.DS_Store

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# BUCK
buck-out/
\.buckd/
*.keystore

# CMake
CMakeFiles
CMakeScripts
CMakeCache.txt
cmake_install.cmake
ReactNativeBabylon.xcodeproj
*.tgz
jsi
60 changes: 60 additions & 0 deletions Modules/@babylonjs/react-native-basekit/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# OSX
#
.DS_Store

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# BUCK
buck-out/
\.buckd/
*.keystore

# CMake
CMakeFiles
CMakeScripts
CMakeCache.txt
cmake_install.cmake
ReactNativeBabylon.xcodeproj
*.tgz

# Package-specific ignores
#submodules/BabylonNative/Apps
submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/examples/*
!submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/examples/common
submodules/BabylonNative/Dependencies/glslang/Test
submodules/BabylonNative/Dependencies/xr/Dependencies/arcore-android-sdk/media
submodules/BabylonNative/Dependencies/xr/Dependencies/arcore-android-sdk/tools
submodules/BabylonNative/Dependencies/xr/Dependencies/arcore-android-sdk/assets
submodules/BabylonNative/Dependencies/xr/Dependencies/arcore-android-sdk/samples
Loading
Loading