From 4ee16d3855761498e84c1c013290eb4196cde254 Mon Sep 17 00:00:00 2001 From: efrilm Date: Tue, 13 Oct 2026 16:45:22 +0700 Subject: [PATCH] workflow: android --- .github/workflows/android.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..3181671 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,47 @@ +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