From a17daaf1b197da4c5d3b2c13a2a34796b9e8a3ad Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Fri, 5 Apr 2024 13:08:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20feat(.gitea/workflows/buildapk.y?= =?UTF-8?q?aml):=20add=20new=20GitHub=20Actions=20workflow=20for=20buildin?= =?UTF-8?q?g=20APK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This workflow triggers on every push, sets up Java, Android SDK, bun, and EAS, installs dependencies, builds the APK, zips all APK files, and uploads the zipped APK as an artifact. --- .gitea/workflows/buildapk.yaml | 54 +++++++++++++++++++++++++++++++++ bun.lockb | Bin 385771 -> 385771 bytes eas.json | 5 ++- 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/buildapk.yaml diff --git a/.gitea/workflows/buildapk.yaml b/.gitea/workflows/buildapk.yaml new file mode 100644 index 0000000..cd1fc94 --- /dev/null +++ b/.gitea/workflows/buildapk.yaml @@ -0,0 +1,54 @@ +name: Building APK +run-name: Build APK +on: [push] +jobs: + build-apl: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '17' + + - name: Setup NodeJS + uses: actions/setup-node@v3 + with: + node-version: 18.x + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + with: + packages: '' + cmdline-tools-version: 9862592 + + - run: sdkmanager --install "cmake;3.18.1" + + - name: Setup bun + uses: oven-sh/setup-bun@v1 + + - name: Install dependencies + run: bun install + + - name: Setup EAS + uses: expo/expo-github-action@v8 + with: + eas-version: latest + token: ${{ secrets.EXPO_TOKEN }} + packager: bun + + - name: Build APK + run: eas build --no-wait --profile production --platform android --non-interactive --local + + - name: Zip all apk + run: | + zip apk.zip *.apk + + - name: Upload APK ZIP + uses: actions/upload-artifact@v2 + with: + name: apk + path: apk.zip diff --git a/bun.lockb b/bun.lockb index 4ab9db53c6243a472e5d21b3cd3dbed226a34d0f..ab558e616cb6eaa9477f3a5b97ebe37ef67fc143 100755 GIT binary patch delta 38 tcmaETRQ&Z(@rD-07N#xCt8Z~I#u@7w>lqrhZ@$G0#4Ou4-(t1k002Ej519Y} delta 38 ocmaETRQ&Z(@rD-07N#xCt8Z~IF+f23=3C4_%(8v+EmjK-03oan7ytkO diff --git a/eas.json b/eas.json index c2116d4..e37f69a 100644 --- a/eas.json +++ b/eas.json @@ -11,7 +11,10 @@ } }, "preview": { - "distribution": "internal" + "distribution": "internal", + "android": { + "buildType": "apk" + } }, "production": { "android": {