From 40795a915afc82ce93a579e9bb1f2ebddb2ce436 Mon Sep 17 00:00:00 2001 From: BilligsterUser Date: Fri, 29 Mar 2024 19:53:35 +0100 Subject: [PATCH] Update android.yml --- .github/workflows/android.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index e08f57b1..6b0504d3 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -78,7 +78,7 @@ jobs: build: - name: build-for-android-base-composite + name: build-for-android-base- runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -127,4 +127,29 @@ jobs: run: npm ci - name: PreBuild Android - run: npx expo prebuild -p android --clean \ No newline at end of file + run: npx expo prebuild -p android --clean + + - name: make gradlew executable + run: chmod +x ./android/gradlew + + - name: Build android APK + run: | + cd ./android && ./gradlew assembleRelease --no-daemon --stacktrace + find . -type f -name '*.apk' 2>/dev/null + cd ${{ env.GITHUB_WORKSPACE }} + shell: bash + + - name: Save Cache + id: cache-save + uses: actions/cache/save@v4 + with: + path: | + ~/**/*android* + ~/*android* + ~/**/*gradle* + ~/*gradle* + **/node_modules + ./node_modules + **/android + ./android + key: ${{ runner.os }}-android-build \ No newline at end of file