From 72559aad81d7c8c6a1c34f3891c0755203b4bdc6 Mon Sep 17 00:00:00 2001 From: Sheikh Abdul Aziz Date: Fri, 19 Jul 2024 21:41:29 +0530 Subject: [PATCH] Update android-ci.yml --- .github/workflows/android-ci.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index 08c7843..90c401a 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -14,11 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - # Step 1: Check out the repository + # Check out the repository - name: Check out repository uses: actions/checkout@v3 - # Step 2: Set up JDK 17 + # Set up JDK 17 - name: Set up JDK 17 uses: actions/setup-java@v3 with: @@ -26,41 +26,48 @@ jobs: distribution: 'temurin' cache: gradle - # Step 3: Grant execute permission for gradlew + # Grant execute permission for gradlew - name: Grant execute permission for gradlew run: chmod +x gradlew - # Step 4: Clean the project + # Clean the project - name: Clean project run: ./gradlew clean - # Step 5: Build with Gradle + # Build with Gradle - name: Build with Gradle run: ./gradlew assembleRelease - # Step 6: Print mapping file if build fails + # List directory contents for debugging + - name: List directory contents for mapping + run: ls -R filetree/build/outputs/mapping/release/ + + - name: List directory contents for build logs + run: ls -R app/build/reports/ + + # Print mapping file if build fails - name: Print mapping file if: failure() run: cat filetree/build/outputs/mapping/release/mapping.txt - # Step 7: Print missing rules if build fails + # Print missing rules if build fails - name: Print missing rules if: failure() run: cat filetree/build/outputs/mapping/release/missing_rules.txt - # Step 8: Print build logs if build fails + # Print build logs if build fails - name: Print build logs if: failure() run: cat app/build/reports/build.log - # Step 9: Archive the debug APK + # Archive the debug APK - name: Archive debug APK uses: actions/upload-artifact@v2 with: name: app-debug path: app/build/outputs/apk/debug/app-debug.apk - # Step 10: Archive the release APK + # Archive the release APK - name: Archive release APK uses: actions/upload-artifact@v2 with: