GitHub Actions: build using Java 19 (use toolchain because Gradle 7.5.1 does not support running on Java 19)

This commit is contained in:
Karl Tauber
2022-09-28 19:15:59 +02:00
parent 12fc2299ec
commit ca88023560
12 changed files with 43 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ jobs:
- 8
- 11 # LTS
- 17 # LTS
toolchain: [""]
include:
- java: 17
toolchain: 19 # latest
steps:
- uses: actions/checkout@v3
@@ -41,7 +45,7 @@ jobs:
cache: gradle
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build -Dtoolchain=${{ matrix.toolchain }}
- name: Upload artifacts
uses: actions/upload-artifact@v3