OpenEUICC/.forgejo/workflows/build-debug.yml
Peter Cai 9a537a2516
All checks were successful
Build Debug APKs / build-debug (push) Successful in 6m40s
Build Release / release (push) Successful in 7m6s
Set up tests for download wizard and fix another backChannel-related regression (#355)
It is time we set up tests. At least dumb things like this should not happen again while we refactor for more features in the future. Currently this is limited to the download wizard, but as we address e.g. #347 more should be coming.

Also note that these tests are not e2e and are limited to everything _above_ `lpac-jni`. True e2e tests are much more expensive to set up, unfortunately, and cannot be run easily on CI due to needing a real eSIM chip.

Assisted-By: deepseek-v4-flash (llama.cpp)

Reviewed-on: #355
2026-09-02 02:40:53 +02:00

62 lines
1.6 KiB
YAML

name: Build Debug APKs
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
build-debug:
runs-on: [ docker, android-app-certs ]
container:
volumes:
- android-app-keystore:/keystore
steps:
- name: Repository Checkout
uses: https://gitea.angry.im/actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Decode Secret Signing Configuration
uses: https://gitea.angry.im/actions/base64-to-file@v1
with:
fileName: keystore.properties
fileDir: ${{ env.GITHUB_WORKSPACE }}
encodedString: ${{ secrets.OPENEUICC_SIGNING_CONFIG }}
- name: Set up JDK 17
uses: https://gitea.angry.im/actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: https://gitea.angry.im/actions/setup-android@v3
- name: Run Tests
run: ./gradlew --no-daemon test
- name: Build Debug APKs
run: ./gradlew --no-daemon assembleDebug :app:assembleDebugMagiskModuleDir
- name: Copy Artifacts
run: |
find . -name 'app*-debug.apk' -exec cp {} . \;
cp -r app/build/magisk/debug ./magisk-debug
- name: Upload APK Artifacts
uses: https://gitea.angry.im/actions/upload-artifact@v3
with:
name: Debug APKs
compression-level: 0
path: app*-debug.apk
- name: Upload Magisk Artifacts
uses: https://gitea.angry.im/actions/upload-artifact@v3
with:
name: magisk-debug
compression-level: 0
path: magisk-debug