Github actions - compile with Java 8, generate JavaDoc with Java 21.

This commit is contained in:
Jindřich Petřík
2024-08-27 16:52:11 +02:00
committed by Jindra Petřík
parent 471c4384f6
commit b6b1af4fb3
3 changed files with 23 additions and 6 deletions

View File

@@ -33,11 +33,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
- name: Set up JDK 8
uses: AdoptOpenJDK/install-jdk@v1
with:
java-version: 21
distribution: temurin
version: '8'
architecture: x64
targets: 'JDK_8;JAVA_HOME'
- name: Set up JDK 21
uses: AdoptOpenJDK/install-jdk@v1
with:
version: '21'
architecture: x64
targets: 'JDK_21'
- name: Set up PHP
run: |
apt update -y -qq