Skip to content

Commit

Permalink
build(ci): switch to GraalVM for Java 21 setup
Browse files Browse the repository at this point in the history
- Replace actions/setup-java with graalvm/setup-graalvm
- Update Java version to latest
- Change distribution to Liberica
- Remove unnecessary cache configuration
  • Loading branch information
vnobo committed Dec 14, 2024
1 parent 048419c commit e261818
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21 for x64
uses: actions/setup-java@v4
- name: Set up graalvm 21 for x64
uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '21'
distribution: 'liberica'
check-latest: true
cache: 'gradle'
cache-dependency-path: | # optional
./*.gradle*
./**/gradle-wrapper.properties
/tmp/*.work*
/tmp/*.build
/tmp/*.launch
cache: 'graalvm'
- name: Execute Gradle platform bootBuildImage
run: |
chmod +x ./gradlew
Expand Down

0 comments on commit e261818

Please sign in to comment.