Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
opt: workflows: Use setup-gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Jul 31, 2024
1 parent 65bf960 commit 8bb9951
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@ jobs:
fetch-depth: 0
submodules: true

- name: Set up JDK 21
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
java-version: '21'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
validate-wrappers: true

- name: Create Sign File
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@ jobs:
fetch-depth: 0
submodules: true

- name: Set up JDK 21
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
validate-wrappers: true

- name: Create Sign File
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 8bb9951

Please sign in to comment.