Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mo7amedaliEbaid authored May 26, 2024
1 parent bf44a61 commit 41b3939
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,24 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Check if Gradle Wrapper Exists
- name: Check if Gradle Build Exists
run: |
if [ ! -f ./settings.gradle ] && [ ! -f ./settings.gradle.kts ]; then
echo "Gradle build files not found, initializing new Gradle project..."
gradle init --type basic
else
echo "Gradle build files found."
fi
- name: Generate Gradle Wrapper if Missing
run: |
if [ ! -f ./gradlew ]; then
echo "Gradle wrapper not found, generating..."
Expand All @@ -33,3 +43,4 @@ jobs:

- name: Build with Gradle
run: ./gradlew build

0 comments on commit 41b3939

Please sign in to comment.