fix(examples): create example for cli #135
Workflow file for this run
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: Android Platform Integration | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| android: | |
| name: Android | |
| runs-on: ubuntu-latest | |
| env: | |
| MISE_EXEC_AUTO_INSTALL: "false" | |
| MISE_NOT_FOUND_AUTO_INSTALL: "false" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Node and Java | |
| uses: jdx/mise-action@v3 | |
| with: | |
| install: true | |
| install_args: node java | |
| cache: true | |
| - name: Setup Godot | |
| uses: chickensoft-games/setup-godot@v2 | |
| with: | |
| version: 4.6.2 | |
| use-dotnet: true | |
| include-templates: true | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v4 | |
| with: | |
| packages: >- | |
| platform-tools | |
| platforms;android-35 | |
| platforms;android-36 | |
| build-tools;36.0.0 | |
| - name: Enable Corepack | |
| run: mise x -- corepack enable pnpm | |
| - name: Get pnpm store path | |
| id: pnpm-store | |
| run: echo "path=$(mise x -- corepack pnpm store path --silent)" >> "$GITHUB_OUTPUT" | |
| - name: Cache pnpm store | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ steps.pnpm-store.outputs.path }} | |
| key: ${{ runner.os }}-${{ runner.arch }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-pnpm-store- | |
| - name: Install pnpm dependencies | |
| run: mise x -- corepack pnpm install --frozen-lockfile | |
| - name: Build Android AAR | |
| run: mise run build:android-aar | |
| - name: Build integration APK | |
| run: mise run build:integration-android | |
| - 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: Run integration tests | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: 35 | |
| target: google_apis | |
| arch: x86_64 | |
| profile: pixel_7 | |
| script: | | |
| adb install -r dist/integration/android_debug.apk | |
| mise run test:integration-android -- ipc_round_trip_probe | |
| mise run test:integration-android -- webview_lifecycle_probe | |
| mise run test:integration-android -- res_asset_loading_probe |