From 78e41c87d3e40919a86f2550a1a2c8ae81259185 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar Date: Wed, 8 Jan 2025 21:37:16 +0700 Subject: [PATCH] update ci configs --- .github/workflows/android-master.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/android-master.yml b/.github/workflows/android-master.yml index 1e1d8d7..b4c80f9 100644 --- a/.github/workflows/android-master.yml +++ b/.github/workflows/android-master.yml @@ -15,15 +15,12 @@ concurrency: jobs: build: name: Build project - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v4 - - name: Validate Gradle Wrapper - uses: gradle/wrapper-validation-action@v2 - - name: Copy CI gradle.properties run: | mkdir -p ~/.gradle @@ -32,18 +29,18 @@ jobs: - name: Setup build tool version variable shell: bash run: | - BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) + BUILD_TOOL_VERSION=$(ls $HOME/Library/Android/sdk/build-tools/ | tail -n 1) echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV echo Last build tool version is: $BUILD_TOOL_VERSION - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: - java-version: 17 - distribution: adopt + java-version: 21 + distribution: jetbrains - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + uses: gradle/actions/setup-gradle@v4 - name: Build APK run: ./gradlew spotlessCheck assembleRelease --stacktrace @@ -82,7 +79,7 @@ jobs: - name: Create Release if: startsWith(github.ref, 'refs/tags/') && github.repository == 'ivaniskandar/shouko' - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: ${{ env.VERSION_TAG }} name: ${{ env.VERSION_TAG }}