Skip to content

Commit

Permalink
Update android-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikh-Abdul-Aziz authored Jul 19, 2024
1 parent ac61e8b commit 72559aa
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,60 @@ 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:
java-version: '17'
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:
Expand Down

0 comments on commit 72559aa

Please sign in to comment.