ci: add Gitea Actions workflow to build debug APK on push
build-apk / build (push) Failing after 18m36s

This commit is contained in:
2026-08-11 23:17:47 +03:00
parent 9d052e04ca
commit eddbe19e2e
+53
View File
@@ -0,0 +1,53 @@
name: build-apk
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/cirruslabs/flutter:3.38.10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache pub deps
uses: actions/cache@v4
with:
path: |
${{ env.FLUTTER_ROOT }}/.pub-cache
.dart_tool
key: pub-${{ hashFiles('pubspec.lock') }}
- name: Cache Gradle
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: gradle-${{ hashFiles('android/**/*.gradle*') }}
- name: Pub get
run: flutter pub get
- name: Codegen (build_runner)
run: dart run build_runner build --delete-conflicting-outputs
- name: Generate l10n
run: flutter gen-l10n
- name: Analyze
run: flutter analyze
- name: Test
run: flutter test
- name: Build debug APK
run: flutter build apk --debug
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: onbudget-debug-apk
path: build/app/outputs/flutter-apk/app-debug.apk