From 1bfbab9ad19450c98d3aa5261b492b8bf9b4fc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Sun, 17 Mar 2024 17:43:35 +0800 Subject: [PATCH 01/10] Create android_ci.yml --- .github/workflows/android_ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/android_ci.yml diff --git a/.github/workflows/android_ci.yml b/.github/workflows/android_ci.yml new file mode 100644 index 0000000..e519f16 --- /dev/null +++ b/.github/workflows/android_ci.yml @@ -0,0 +1,26 @@ +name: Android CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build From a00faf5c2e3796eff4c18ae470310ebd4eb4b4b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:04:30 +0800 Subject: [PATCH 02/10] Create android-build.yml --- .github/workflows/android-build.yml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/android-build.yml diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml new file mode 100644 index 0000000..048c7e5 --- /dev/null +++ b/.github/workflows/android-build.yml @@ -0,0 +1,42 @@ + +on: + push: + branch: + - main # Replace 'main' with your default branch if different. + +jobs: + build: + name: Build Android APK + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Build release APK + run: ./gradlew assembleRelease + + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: apk + path: app/build/outputs/apk/release/*.apk From 5d08c4eef264fcc9d3d4472fa5c039858b4eefd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:08:30 +0800 Subject: [PATCH 03/10] Delete .github/workflows directory --- .github/workflows/android-build.yml | 42 ----------------------------- .github/workflows/android_ci.yml | 26 ------------------ 2 files changed, 68 deletions(-) delete mode 100644 .github/workflows/android-build.yml delete mode 100644 .github/workflows/android_ci.yml diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml deleted file mode 100644 index 048c7e5..0000000 --- a/.github/workflows/android-build.yml +++ /dev/null @@ -1,42 +0,0 @@ - -on: - push: - branch: - - main # Replace 'main' with your default branch if different. - -jobs: - build: - name: Build Android APK - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - - - name: Grant execute permission for gradlew - run: chmod +x ./gradlew - - - name: Cache Gradle packages - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Build release APK - run: ./gradlew assembleRelease - - - name: Upload APK - uses: actions/upload-artifact@v2 - with: - name: apk - path: app/build/outputs/apk/release/*.apk diff --git a/.github/workflows/android_ci.yml b/.github/workflows/android_ci.yml deleted file mode 100644 index e519f16..0000000 --- a/.github/workflows/android_ci.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Android CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build From 9381bc0d165e295e0fa4ab40fa28206cb69a7b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:16:19 +0800 Subject: [PATCH 04/10] Create android-bulid.yml --- .github/workflows/android-bulid.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/android-bulid.yml diff --git a/.github/workflows/android-bulid.yml b/.github/workflows/android-bulid.yml new file mode 100644 index 0000000..3daeaa7 --- /dev/null +++ b/.github/workflows/android-bulid.yml @@ -0,0 +1,41 @@ +on: + push: + branches: + - master # Replace 'main' with your default branch if different. + +jobs: + build: + name: Build Android APK + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 1.8 + uses: actions/setup-java@v2 + with: + java-version: '1.8' + distribution: 'termurin' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Build release APK + run: ./gradlew assembleRelease + + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: apk + path: app/build/outputs/apk/release/*.apk From f8028a9e941ac28bc43becff2ec87b3e5a2085d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:18:35 +0800 Subject: [PATCH 05/10] Update android-bulid.yml --- .github/workflows/android-bulid.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-bulid.yml b/.github/workflows/android-bulid.yml index 3daeaa7..4c5143e 100644 --- a/.github/workflows/android-bulid.yml +++ b/.github/workflows/android-bulid.yml @@ -16,7 +16,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '1.8' - distribution: 'termurin' + distribution: 'temurin' - name: Grant execute permission for gradlew run: chmod +x ./gradlew From 83106eef8724c36ca615ce4474b7c0fe041345b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:22:34 +0800 Subject: [PATCH 06/10] Update android-bulid.yml --- .github/workflows/android-bulid.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-bulid.yml b/.github/workflows/android-bulid.yml index 4c5143e..c30db49 100644 --- a/.github/workflows/android-bulid.yml +++ b/.github/workflows/android-bulid.yml @@ -12,10 +12,10 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK 8 uses: actions/setup-java@v2 with: - java-version: '1.8' + java-version: '8' distribution: 'temurin' - name: Grant execute permission for gradlew From c5c993802eb05d38ba8e5f7be05831bc89185807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Tue, 14 May 2024 12:26:52 +0800 Subject: [PATCH 07/10] Update android-bulid.yml --- .github/workflows/android-bulid.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-bulid.yml b/.github/workflows/android-bulid.yml index c30db49..5309fde 100644 --- a/.github/workflows/android-bulid.yml +++ b/.github/workflows/android-bulid.yml @@ -37,5 +37,5 @@ jobs: - name: Upload APK uses: actions/upload-artifact@v2 with: - name: apk + name: app-release path: app/build/outputs/apk/release/*.apk From 0fbee0b9ca1e6301e0c16f97aa8cff27f8239e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Mon, 19 May 2025 09:58:55 +0800 Subject: [PATCH 08/10] Update android-bulid.yml --- .github/workflows/android-bulid.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-bulid.yml b/.github/workflows/android-bulid.yml index 5309fde..913dc8e 100644 --- a/.github/workflows/android-bulid.yml +++ b/.github/workflows/android-bulid.yml @@ -2,7 +2,8 @@ on: push: branches: - master # Replace 'main' with your default branch if different. - + workflow_dispatch: + jobs: build: name: Build Android APK From 907ea72345196f2e04e18c5c380d2e2cd8604ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Mon, 19 May 2025 10:01:04 +0800 Subject: [PATCH 09/10] Update action ver --- .github/workflows/android-bulid.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-bulid.yml b/.github/workflows/android-bulid.yml index 913dc8e..ceb2c41 100644 --- a/.github/workflows/android-bulid.yml +++ b/.github/workflows/android-bulid.yml @@ -23,7 +23,7 @@ jobs: run: chmod +x ./gradlew - name: Cache Gradle packages - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.gradle/caches @@ -36,7 +36,7 @@ jobs: run: ./gradlew assembleRelease - name: Upload APK - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: app-release path: app/build/outputs/apk/release/*.apk From 3a217c1d504a37246538fe786dd8ad7300a6c552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=ABZMT=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <98326195+SteveZMTstudios@users.noreply.github.com> Date: Mon, 19 May 2025 10:02:21 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20android-bulid.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/android-bulid.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-bulid.yml b/.github/workflows/android-bulid.yml index ceb2c41..67476b0 100644 --- a/.github/workflows/android-bulid.yml +++ b/.github/workflows/android-bulid.yml @@ -36,7 +36,7 @@ jobs: run: ./gradlew assembleRelease - name: Upload APK - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: app-release path: app/build/outputs/apk/release/*.apk