refs #468 Update maven.yml for jdk 21 and maven 3.9.9 #152
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: Java CI | |
on: | |
push: | |
branches: | |
- 3.x | |
pull_request: | |
branches: | |
- 3.x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
java-package: jdk+fx | |
- name: Download old Maven | |
run: wget -q https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.zip | |
- name: Unzip old maven | |
run: unzip apache-maven-3.9.9-bin.zip | |
- name: Run Maven | |
# run: ./apache-maven-3.9.9/bin/mvn --version | |
run: ./apache-maven-3.9.9/bin/mvn -q -B clean package integration-test --file releng/org.eclipse.fx.releng/pom.xml |