Skip to content

Commit

Permalink
fix(ci): use JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
arkon authored and ivaniskandar committed Apr 2, 2024
1 parent 3b1f1b8 commit 0d5b867
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/android-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,33 @@ concurrency:
cancel-in-progress: true

jobs:
check_wrapper:
name: Validate Gradle Wrapper
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@v2

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

build:
name: Build project
needs: check_wrapper
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2

- name: Copy CI gradle.properties
run: |
mkdir -p ~/.gradle
cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 11
java-version: 17
distribution: adopt

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build APK
run: bash ./gradlew spotlessCheck assembleRelease --stacktrace
run: ./gradlew spotlessCheck assembleRelease --stacktrace

- name: Sign APK
if: github.repository == 'ivaniskandar/shouko' && github.event_name == 'push'
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 0d5b867

Please sign in to comment.