Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update the workflow to use the latest old version of workflow for CRs
Browse files Browse the repository at this point in the history
  • Loading branch information
khammami authored Feb 5, 2024
1 parent 8b7bb4d commit f42914a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/android_app_build_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ jobs:
# Check if the application folder contains an Android project
- name: Check for Android project
run: |
if [ -f "${{env.ANDROID_APP_PATH}}/build.gradle" ]; then
if [ -f "${{env.ANDROID_APP_PATH}}/build.gradle" ] || [ -f "${{env.ANDROID_APP_PATH}}/build.gradle.kts" ]; then
echo "Android project found"
if [ -n "$(find ${{env.ANDROID_APP_PATH}}/app/src/main/java -name "*.kt" -type f)" ]; then
echo "Module app is written in Kotlin"
exit 1
else
echo "Module app is written in Java"
fi
else
echo "No Android project found"
exit 1
Expand All @@ -42,7 +48,6 @@ jobs:
# Build the debug apk
- name: Build debug apk
run: ./${{env.ANDROID_APP_PATH}}/gradlew assembleDebug -p ${{env.ANDROID_APP_PATH}}

# Upload the debug apk to GitHub
- name: Upload debug apk
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit f42914a

Please sign in to comment.