Files
synchronicity/.gitea/workflows/build-apk.yml
T

39 lines
1.1 KiB
YAML
Raw Normal View History

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'
jobs:
build:
2026-03-13 04:02:29 -07:00
runs-on: nix-host
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' }}
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
- name: Verify APK exists
run: |
echo "PWD: $PWD"
find . -name "*.apk" -type f 2>/dev/null || echo "No APK files found anywhere"
- 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