Skip to content

Commit

Permalink
ci: java 17 and 21 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mate-from-mattr committed Dec 16, 2024
1 parent 55a42ae commit 1f1f5fc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 1f1f5fc

Please sign in to comment.