Skip to content

Commit

Permalink
update ci configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaniskandar committed Jan 8, 2025
1 parent 0216aaf commit 78e41c8
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/android-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 78e41c8

Please sign in to comment.