mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
At the owner's request the APK carries M-VAVE's V15 next to JIANT: fetch_firmware.py (was fetch_jiant.py) takes it at build time from Quixotic7/FM1Backups at a pinned commit and accepts only the genuine file (sha256 db1642b2...); it is not stored in git. The app still downloads it if a build lacks it. Choosing the V16 now explains in plain words why it does not fit and what to do instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
# SPDX-License-Identifier: GPL-3.0-only
|
|
# (JIANT) the Android probe (android/probe, JIANT Probe: what a phone does with the FM-1's USB audio), built on every
|
|
# push that touches it, the APK as a workflow artifact. On main the site's workflow (emulator.yml) also publishes it
|
|
# next to the installer (app/jiant-probe.apk). FM-1 Rescue (android/rescue: unbricks an FM-1 with an RP2040 and
|
|
# the phone) is built the same way, with the rescue firmware from rescue/base as its assets. The JIANT Stems app is a separate product, not in this repository.
|
|
name: android
|
|
on:
|
|
push:
|
|
paths: ["android/**", "rescue/base/**", ".github/workflows/android.yml"]
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
probe:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
- uses: gradle/actions/setup-gradle@v4
|
|
with:
|
|
gradle-version: "8.9"
|
|
- name: the APK
|
|
run: gradle -p android/probe assembleDebug --no-daemon
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: jiant-probe
|
|
path: android/probe/app/build/outputs/apk/debug/app-debug.apk
|
|
rescue:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
- uses: gradle/actions/setup-gradle@v4
|
|
with:
|
|
gradle-version: "8.9"
|
|
- name: the public JIANT and the official V15 inside the APK
|
|
run: python3 android/rescue/fetch_firmware.py
|
|
- name: the APK
|
|
run: gradle -p android/rescue assembleDebug --no-daemon
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: fm1-rescue
|
|
path: android/rescue/app/build/outputs/apk/debug/app-debug.apk
|