2026-03-09 03:24:59 -07:00
|
|
|
name: Build Debug APK
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [master]
|
2026-03-20 22:46:34 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
|
inputs:
|
|
|
|
|
skip_build:
|
|
|
|
|
description: 'Skip APK build (reuse existing artifact)'
|
|
|
|
|
required: false
|
|
|
|
|
default: 'false'
|
2026-03-09 03:24:59 -07:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
2026-03-13 04:02:29 -07:00
|
|
|
runs-on: nix-host
|
2026-03-09 03:24:59 -07:00
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Build APK
|
2026-03-20 22:46:34 -07:00
|
|
|
if: ${{ gitea.event.inputs.skip_build != 'true' }}
|
2026-06-12 15:11:55 -07:00
|
|
|
env:
|
|
|
|
|
# Embedded into the build by rust/lib/build.rs (the About screen /
|
|
|
|
|
# `syn about` command) so the APK reports the commit it came from.
|
|
|
|
|
GITEA_SHA: ${{ gitea.sha }}
|
2026-03-20 11:57:07 -07:00
|
|
|
run: nix develop --command build-apk-ci
|
2026-03-20 22:46:34 -07:00
|
|
|
|
2026-03-21 00:30:15 -07:00
|
|
|
- name: Verify APK exists
|
|
|
|
|
run: |
|
|
|
|
|
echo "PWD: $PWD"
|
|
|
|
|
find . -name "*.apk" -type f 2>/dev/null || echo "No APK files found anywhere"
|
|
|
|
|
|
2026-03-09 03:24:59 -07:00
|
|
|
- name: Create release
|
2026-03-20 22:21:15 -07:00
|
|
|
env:
|
|
|
|
|
GITEA_SHA: ${{ gitea.sha }}
|
2026-03-20 22:46:34 -07:00
|
|
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
|
|
|
|
GITEA_REPO: ${{ gitea.repository }}
|
2026-03-20 22:21:15 -07:00
|
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
|
run: nix develop --command create-release-ci
|