From 77182e2750b67ba997c1860c70fd747785f13ff2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:39:45 +0000 Subject: [PATCH] ci: add workflow to build x86_64 and armeabi-v7a APKs on push/PR Agent-Logs-Url: https://github.com/LeninAsto/Cyber-Control/sessions/b1d1bafd-4896-4317-8b7d-00d52f56c93b Co-authored-by: LeninAsto <119011731+LeninAsto@users.noreply.github.com> --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ app/build.gradle.kts | 9 ++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6725013 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build APKs (x86_64 & armeabi-v7a) + +on: + push: + branches: [ "**" ] + pull_request: + branches: [ "**" ] + +jobs: + build: + name: Build debug APKs + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build debug APKs (x86_64 & armeabi-v7a) + run: ./gradlew assembleDebug + + - name: Upload x86_64 APK + uses: actions/upload-artifact@v4 + with: + name: app-x86_64-debug + path: app/build/outputs/apk/debug/*x86_64*.apk + + - name: Upload armeabi-v7a APK + uses: actions/upload-artifact@v4 + with: + name: app-armeabi-v7a-debug + path: app/build/outputs/apk/debug/*armeabi-v7a*.apk diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e54391e..57eaaae 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -37,6 +37,15 @@ android { buildFeatures { compose = true } + + splits { + abi { + isEnable = true + reset() + include("x86_64", "armeabi-v7a") + isUniversalApk = false + } + } } dependencies {