From f5080c56ef2aaa827d4e3cd0e0571e7ed9db986b Mon Sep 17 00:00:00 2001 From: Yawata Date: Sat, 5 Oct 2024 13:10:36 +0800 Subject: [PATCH 1/3] Update android.yml --- .github/workflows/android.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index c051250..f250585 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -7,7 +7,8 @@ on: pull_request: branches: - main - + workflow_dispatch: + jobs: build: name: Build Android App From e750e1bb1a15612c971ae4056cada7426a67565b Mon Sep 17 00:00:00 2001 From: Yawata Date: Sat, 5 Oct 2024 13:12:19 +0800 Subject: [PATCH 2/3] Update android.yml --- .github/workflows/android.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f250585..fb110d1 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,4 +1,4 @@ -name: lobe-chat-android +name: Android CI on: push: @@ -8,7 +8,7 @@ on: branches: - main workflow_dispatch: - + jobs: build: name: Build Android App @@ -26,7 +26,11 @@ jobs: distribution: 'zulu' java-version: '11' - # Step 3: Cache Gradle dependencies + # Step 3: Grant execute permission for gradlew + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + # Step 4: Cache Gradle dependencies - name: Cache Gradle packages uses: actions/cache@v3 with: @@ -37,15 +41,15 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - # Step 4: Download Dependencies (Gradle Wrapper) + # Step 5: Download Dependencies (Gradle Wrapper) - name: Download Dependencies run: ./gradlew --no-daemon clean build - # Step 5: Build APK + # Step 6: Build APK - name: Build Debug APK run: ./gradlew --no-daemon assembleDebug - # Step 6: Upload artifact (optional) + # Step 7: Upload artifact (optional) - name: Upload APK uses: actions/upload-artifact@v3 with: From 8e666131d39abb3b80e0f1c5b1f31165b15b1ad1 Mon Sep 17 00:00:00 2001 From: Yawata Date: Sat, 5 Oct 2024 13:15:00 +0800 Subject: [PATCH 3/3] Update android.yml --- .github/workflows/android.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index fb110d1..e25ced5 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -19,12 +19,12 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 - # Step 2: Set up JDK (Java 11 is used for Android projects) - - name: Set up JDK 11 + # Step 2: Set up JDK (Java 17 is required for Android projects) + - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'zulu' - java-version: '11' + java-version: '17' # Step 3: Grant execute permission for gradlew - name: Grant execute permission for gradlew