From 1f1f5fc9e54ddd1affae3558897b78df92c332f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9=20Antunovic?= Date: Mon, 16 Dec 2024 14:02:15 +1300 Subject: [PATCH] ci: java 17 and 21 builds --- .github/workflows/ci-java.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index b9d6b42..6babf8f 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -17,12 +17,15 @@ jobs: name: Build & Test Java Wrapper if: "! contains(github.event.head_commit.message, '[skip ci]')" runs-on: macos-latest + strategy: + matrix: + java-version: [11, 17, 21] # Add other versions if needed steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 + - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@v2 with: - java-version: "11" + java-version: ${{ matrix.java-version }} distribution: "adopt" - name: Cache Gradle packages uses: actions/cache@v2 @@ -37,8 +40,6 @@ jobs: working-directory: ./wrappers/java run: ./gradlew build - name: Cleanup Gradle Cache - # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. - # Restoring these files from a GitHub Actions cache might cause problems for future builds. run: | rm -f ~/.gradle/caches/modules-2/modules-2.lock rm -f ~/.gradle/caches/modules-2/gc.properties