diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 000000000..96742a0e6 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,121 @@ +name: Nightly build + +on: + workflow_dispatch: + schedule: + - cron: 0 23 * * 1-5 + +env: + BRN_Version: '0.70' + +jobs: + build-android: + runs-on: macos-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2.3.3 + with: + submodules: 'recursive' + - name: Update BN submodule + run: | + git submodule update --progress --recursive --force --remote + - name: Setup Node 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Setup CMake + uses: jwlawson/actions-setup-cmake@v1.8 + with: + cmake-version: '3.26.3' # See https://gitlab.kitware.com/cmake/cmake/-/issues/22021 + - name: Setup Ninja + run: brew install ninja + - name: NPM Install (Playground) + run: npm install + working-directory: ./Apps/Playground + - name: NPM Install (React Native ${{ env.BRN_Version }}) + run: npm run select ${{ env.BRN_Version }} + working-directory: ./Apps/Playground + - name: NPM Install (Binary Package) + run: npm install + working-directory: ./Package + - name: Gulp (Android) + run: npx gulp buildAndroid + working-directory: ./Package + env: + JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }} + + build-iOS: + runs-on: macos-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2.3.3 + with: + submodules: 'recursive' + - name: Update BN submodule + run: | + git submodule update --progress --recursive --force --remote + - name: Setup Node 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: NPM Install (Playground) + run: npm install + working-directory: ./Apps/Playground + - name: NPM Install (React Native ${{ env.BRN_Version }}) + run: npm run select --reactNative ${{ env.BRN_Version }} + working-directory: ./Apps/Playground + - name: NPM Install (Binary Package) + run: npm install + working-directory: ./Package + - name: Gulp (iOS) + run: npx gulp buildIOS + working-directory: ./Package + + build-windows: + runs-on: windows-2019 + strategy: + matrix: + platform: [x86, x64, ARM64] + config: [Debug, Release] + steps: + - name: Checkout Repo + uses: actions/checkout@v2.3.3 + with: + submodules: 'true' + - name: Update BN submodule + run: | + git submodule update --progress --recursive --force --remote + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1.0.2 + - name: Setup Node 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Setup NuGet + uses: nuget/setup-nuget@v1 + with: + nuget-version: '5.x' + - name: NPM Install (Playground) + run: npm install + working-directory: ./Apps/Playground + - name: NPM Install (React Native ${{ env.BRN_Version }}) + run: npm run select ${{ env.BRN_Version }} + working-directory: ./Apps/Playground + - name: NPM Install (Binary Package) + run: npm install + working-directory: ./Package + - name: Git (Windows) + run: npx gulp initializeSubmodulesWindowsAgent + working-directory: ./Package + - name: Gulp Setup Project ${{ matrix.platform }} (Windows) + run: npx gulp makeUWPProject${{ matrix.platform }} + working-directory: ./Package + - name: Gulp Build ${{ matrix.platform }} ${{ matrix.config }} (Windows) + run: npx gulp buildUWP${{ matrix.platform }}${{ matrix.config }} + working-directory: ./Package + - name: Gulp NuGet Restore Playground + run: npx gulp nugetRestoreUWPPlayground + working-directory: ./Package + - name: Gulp Build ${{ matrix.platform }} ${{ matrix.config }} Playground (Windows) + run: npx gulp buildUWPPlayground${{ matrix.platform }}${{ matrix.config }} + working-directory: ./Package \ No newline at end of file diff --git a/Modules/@babylonjs/react-native-iosandroid/android/build.gradle b/Modules/@babylonjs/react-native-iosandroid/android/build.gradle index e7dfd3fd0..c64e1ec91 100644 --- a/Modules/@babylonjs/react-native-iosandroid/android/build.gradle +++ b/Modules/@babylonjs/react-native-iosandroid/android/build.gradle @@ -109,7 +109,7 @@ android { } externalNativeBuild { cmake { - version '3.19.6' + version '3.19.6+' path 'CMakeLists.txt' } }