Repository navigation
Fix Windows release preflight for versioned installations #1491
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 App PR Build | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| concurrency: | |
| group: ${{ github.workflow }}-pr-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| changes: | |
| uses: ./.github/workflows/app-change-detection.yml | |
| build-android: | |
| needs: changes | |
| if: ${{ always() && !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.android != 'false') }} | |
| runs-on: blacksmith-8vcpu-ubuntu-2404 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # was v4 | |
| with: | |
| persist-credentials: false | |
| - name: Install Nix | |
| uses: DeterminateSystems/determinate-nix-action@96c5ee93a9dddf2830d31e1da6ec719077336c28 # v3.23.3 | |
| with: | |
| source-tag: v3.23.3 | |
| github-token: "" | |
| - name: Verify pinned Nix runtime | |
| run: bash scripts/ci/verify-nix-runtime.sh | |
| - name: Cache Bun dependencies | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # was v4 | |
| with: | |
| path: | | |
| ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('apps/maple-research/frontend/bun.lock', 'sdk/bun.lock') }} | |
| - name: Cache Gradle | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # was v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('apps/maple-research/frontend/src-tauri/gen/android/**/*.gradle*', 'apps/maple-research/frontend/src-tauri/gen/android/gradle/wrapper/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Cache sccache | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # was v4 | |
| with: | |
| path: ~/.cache/sccache | |
| key: ${{ runner.os }}-sccache-android-${{ hashFiles('apps/maple-research/frontend/src-tauri/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-sccache-android- | |
| ${{ runner.os }}-sccache- | |
| - name: Build Tauri Android App (fake signed release) | |
| run: nix develop --no-update-lock-file .#android -c ./scripts/ci/android-release.sh | |
| env: | |
| MAPLE_ANDROID_FAKE_SIGNING: "1" | |
| MAPLE_ANDROID_WEB_ENVIRONMENT: pr | |
| - name: Show sccache stats | |
| if: always() | |
| run: nix develop --no-update-lock-file .#android -c ./scripts/ci/sccache-stats.sh | |
| - name: Upload Android fake signed PR artifacts | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # was v4 | |
| with: | |
| name: maple-android-fake-signed-release | |
| path: | | |
| apps/maple-research/frontend/src-tauri/gen/android/app/build/outputs/apk/universal/release/*.apk | |
| apps/maple-research/frontend/src-tauri/gen/android/app/build/outputs/bundle/universalRelease/*.aab | |
| apps/maple-research/frontend/src-tauri/target/reproducibility/android-release-*.sha256 | |
| retention-days: 5 |