Skip to content

Commit

Permalink
fix: 👷 debug android CI build system
Browse files Browse the repository at this point in the history
  • Loading branch information
samiurprapon committed Sep 22, 2024
1 parent be89514 commit 7d30567
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,18 @@ jobs:

- name: Setup Android SDK
uses: android-actions/setup-android@v2

# change directory to android
- name: Enter to android folder
run: cd android

- name: Diagnose project structure
run: |
echo "Current directory:"
pwd
echo "Directory contents:"
ls -R
echo "Android directory contents:"
ls -R android
# change directory to android
- name: Enter to android folder
run: cd android
- name: Set Gradle Wrapper Permissions
run: |
chmod +x ./gradlew
echo "GRADLEW_PATH=./gradlew" >> $GITHUB_ENV
run: chmod +x ./gradlew

- name: Cache Gradle packages
uses: actions/cache@v3
Expand All @@ -58,17 +52,9 @@ jobs:
- name: Build gradle project
run: ./gradlew build
working-directory: ./android

- name: Build debug APK
run: ./gradlew assembleDebug
working-directory: ./android

- name: Upload debug APK
uses: actions/upload-artifact@v3
with:
name: app-debug
path: app/build/outputs/apk/debug/*.apk

# release:
# needs: build
Expand Down

0 comments on commit 7d30567

Please sign in to comment.