Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 1f1f5fc

Browse files
ci: java 17 and 21 builds
1 parent 55a42ae commit 1f1f5fc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci-java.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ jobs:
1717
name: Build & Test Java Wrapper
1818
if: "! contains(github.event.head_commit.message, '[skip ci]')"
1919
runs-on: macos-latest
20+
strategy:
21+
matrix:
22+
java-version: [11, 17, 21] # Add other versions if needed
2023
steps:
2124
- uses: actions/checkout@v3
22-
- name: Set up JDK 11
25+
- name: Set up JDK ${{ matrix.java-version }}
2326
uses: actions/setup-java@v2
2427
with:
25-
java-version: "11"
28+
java-version: ${{ matrix.java-version }}
2629
distribution: "adopt"
2730
- name: Cache Gradle packages
2831
uses: actions/cache@v2
@@ -37,8 +40,6 @@ jobs:
3740
working-directory: ./wrappers/java
3841
run: ./gradlew build
3942
- name: Cleanup Gradle Cache
40-
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
41-
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
4243
run: |
4344
rm -f ~/.gradle/caches/modules-2/modules-2.lock
4445
rm -f ~/.gradle/caches/modules-2/gc.properties

0 commit comments

Comments
 (0)