This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to make github matrix build work
- Loading branch information
Showing
3 changed files
with
66 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,61 @@ name: Maven CI Build | |
on: [push] | ||
|
||
jobs: | ||
test: | ||
JDK6Toolchain: | ||
name: Toolchain 1.6, JDK 11, OS ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-18.04, windows-2019] | ||
java: [6, 7, 11, 17] | ||
fail-fast: false | ||
max-parallel: 3 | ||
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} | ||
|
||
os: [ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022] | ||
fail-fast: true | ||
max-parallel: 2 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Toolchain JDK | ||
uses: battila7/jdk-via-jabba@v1 | ||
with: | ||
jdk: [email protected] | ||
javaHomeEnvironmentVariable: TOOLCHAIN_JDK | ||
addBinDirectoryToPath: false | ||
- name: Configure Maven for Toolchain | ||
shell: bash | ||
run: | | ||
mkdir -p $HOME/.m2 && cat >$HOME/.m2/toolchains.xml <<EOF | ||
<?xml version="1.0" encoding="UTF8"?> | ||
<toolchains> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>1.6</version><!-- usually a lie --> | ||
<vendor>oracle</vendor><!-- definitely a lie --> | ||
</provides> | ||
<configuration> | ||
<jdkHome>${{ env.TOOLCHAIN_JDK }}</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
</toolchains> | ||
EOF | ||
- name: Set up Modern JDK for Maven | ||
uses: actions/setup-java@v1 | ||
with: | ||
distribution: zulu | ||
java-version: 11 | ||
- name: Run maven build | ||
run: mvn clean verify site -B | ||
Modern: | ||
name: JDK ${{ matrix.jdk }}, OS ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022] | ||
jdk: [8, 11, 17] | ||
fail-fast: true | ||
max-parallel: 4 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK | ||
- name: Set up Modern JDK for Maven | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
java-version: ${{ matrix.jdk }} | ||
- name: Run maven build | ||
run: mvn clean test install site assembly:single -B -P no-toolchain | ||
run: mvn clean verify -B -P no-toolchain |
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
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