chore: bump package versions to 2.0.0-beta.24 #95
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test android sample | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - cppjs-core/** | |
| - cppjs-extensions/** | |
| - cppjs-packages/** | |
| - cppjs-plugins/** | |
| - cppjs-samples/** | |
| - .github/workflows/test-android-sample.yml | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - cppjs-core/cpp.js/** | |
| - cppjs-plugins/cppjs-plugin-metro/** | |
| - cppjs-plugins/cppjs-plugin-react-native/** | |
| - cppjs-samples/cppjs-sample-lib-prebuilt-matrix/** | |
| - cppjs-samples/cppjs-sample-mobile-reactnative-cli/** | |
| - .github/workflows/test-android-sample.yml | |
| permissions: {} | |
| jobs: | |
| # Emulator-free fast lane: exercises the gradle config-phase scripts (bridges, deps | |
| # stamp, assets) and the CMake configure chain (params file, prefab) in ~2-3 minutes. | |
| configure-only: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 #v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'adopt' | |
| java-version: '17' | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Install NDK and CMake | |
| run: yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "ndk;29.0.14206865" "cmake;4.1.2" > /dev/null | |
| - name: Build cppjs-sample-lib-prebuilt-matrix | |
| run: pnpm --filter=@cpp.js/sample-lib-prebuilt-matrix run build:android | |
| - name: Gradle cache | |
| uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 #v4 | |
| - name: CMake configure (x86_64) | |
| working-directory: cppjs-samples/cppjs-sample-mobile-reactnative-cli/android | |
| run: ./gradlew ":cpp.js_plugin-react-native:configureCMakeDebug[x86_64]" -PreactNativeArchitectures=x86_64 --console=plain | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 #v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'adopt' | |
| java-version: '17' | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build cppjs-sample-lib-prebuilt-matrix | |
| run: pnpm --filter=@cpp.js/sample-lib-prebuilt-matrix run build:android | |
| - name: Install Maestro | |
| run: | | |
| curl -fsSL "https://get.maestro.mobile.dev" | bash | |
| echo "$HOME/.maestro/bin" >> $GITHUB_PATH | |
| - name: Enable KVM | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - name: Gradle cache | |
| uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 #v4 | |
| - name: create AVD | |
| uses: reactivecircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a #v2.37.0 | |
| with: | |
| api-level: 36 | |
| target: default | |
| arch: x86_64 | |
| cmake: 4.1.2 | |
| ndk: 29.0.14206865 | |
| force-avd-creation: false | |
| emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| disable-animations: false | |
| script: echo "Generated AVD snapshot for caching." | |
| - name: E2E Android | |
| uses: reactivecircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a #v2.37.0 | |
| with: | |
| api-level: 36 | |
| target: default | |
| arch: x86_64 | |
| cmake: 4.1.2 | |
| ndk: 29.0.14206865 | |
| force-avd-creation: false | |
| emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| disable-animations: true | |
| script: | | |
| adb logcat --clear | |
| adb logcat '*:D' > adb-log.txt & | |
| pnpm run e2e:android | |
| - name: Upload Adb Logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Adb Logs | |
| path: adb-log.txt | |
| - name: Upload report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: E2E Report | |
| path: ~/.maestro/tests/**/* |