Add Java 22 into test matrix and minor updates #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gradle Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
gradle: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
# Test on all LTS JDKs and the latest JDK. | |
jdk: [ 8, 11, 17, 21, 22 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.jdk }} | |
- uses: gradle/actions/setup-gradle@v4 | |
- name: Build | |
run: ./gradlew build "-Pme.champeau.japicmp.javaToolchain.test=${{ matrix.jdk }}" |