Files
apskel-owner-flutter/.github/workflows/android.yml
T
efrilm 7c8b36b65d
Build Android APK (split per ABI) / build-apk (push) Waiting to run
Build & Deploy iOS to TestFlight / build-and-deploy (push) Waiting to run
feat: add total count at order page
2026-10-19 23:04:03 +07:00

48 lines
1.4 KiB
YAML

name: Build Android APK (split per ABI)
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-apk:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
# Samain dengan versi di ios.yml biar konsisten.
flutter-version: "3.47.0"
cache: true
- name: Install Dependencies
run: flutter pub get
# ── Build ───────────────────────────────────────────────────────────────
- name: Build APK (split per ABI)
run: flutter build apk --release --split-per-abi
# ── Artifact ────────────────────────────────────────────────────────────
- name: Upload APKs as Artifact
uses: actions/upload-artifact@v4
with:
name: android-apk
path: build/app/outputs/flutter-apk/app-*-release.apk
retention-days: 7