name: Build Debug APK on: push: branches: [master] workflow_dispatch: inputs: skip_build: description: 'Skip APK build (reuse existing artifact)' required: false default: 'false' jobs: build: runs-on: nix-host steps: - name: Checkout uses: actions/checkout@v4 - name: Build APK 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 }} run: nix develop --command build-apk-ci - 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 env: GITEA_SHA: ${{ gitea.sha }} GITEA_SERVER_URL: ${{ gitea.server_url }} GITEA_REPO: ${{ gitea.repository }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: nix develop --command create-release-ci