Make the launcher a standalone repo
Moved out of codegod100/ultra with its history (examples/launcher is now web/). ultra is a git submodule; pixi tasks build web/app.wasm with it and run the browser test. CI runs that test and builds the APK, signed with the same committed debug key, and republishes the launcher-latest release. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011TQdaz3C1f3xEJM6PFzWE6
This commit is contained in:
11 files changed
+2082
-178
No files matched your search
@@ -0,0 +1,53 @@
|
||||
name: Launcher
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
web:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
submodules: true
|
||||
- uses: prefix-dev/setup-pixi@v0.9.3
|
||||
- name: Fetch Playwright
|
||||
run: pixi run install-playwright
|
||||
- name: Build the wasm and run the browser test
|
||||
run: pixi run test
|
||||
- name: Check the committed web/app.wasm is up to date
|
||||
run: git diff --exit-code --stat web/
|
||||
|
||||
apk:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
- uses: gradle/actions/setup-gradle@v5
|
||||
- name: Build the APK
|
||||
working-directory: android
|
||||
run: ./gradlew --no-daemon assembleDebug
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: ultra-launcher-apk
|
||||
path: android/app/build/outputs/apk/debug/app-debug.apk
|
||||
# Keep a "launcher-latest" prerelease with the newest APK, so a phone can download it directly.
|
||||
- name: Publish the launcher-latest release
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
cp android/app/build/outputs/apk/debug/app-debug.apk ultra-launcher.apk
|
||||
gh release delete launcher-latest --yes --cleanup-tag || true
|
||||
gh release create launcher-latest ultra-launcher.apk --prerelease --target "$GITHUB_SHA" \
|
||||
--title "ultra launcher (latest build)" \
|
||||
--notes "Debug-signed APK of android/ built from $GITHUB_SHA. Install it, press Home, and pick ultra Home."
|
||||
Reference in new issue
Block a user