Skip to content
Permalink
Browse files
Explicit toolchain version in github actions
  • Loading branch information
davecromberge committed Jun 24, 2021
1 parent 971731a commit 8f4711012493dd5e700a7fcbaec63eb8ee21718d
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
@@ -30,6 +30,16 @@
<jdkHome>${env.JAVA9_HOME}</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>jdk</type>
<provides>
<version>10</version>
<vendor>openjdk</vendor>
</provides>
<configuration>
<jdkHome>${env.JAVA10_HOME}</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>jdk</type>
<provides>
@@ -40,4 +50,24 @@
<jdkHome>${env.JAVA11_HOME}</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>jdk</type>
<provides>
<version>12</version>
<vendor>openjdk</vendor>
</provides>
<configuration>
<jdkHome>${env.JAVA12_HOME}</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>jdk</type>
<provides>
<version>13</version>
<vendor>openjdk</vendor>
</provides>
<configuration>
<jdkHome>${env.JAVA13_HOME}</jdkHome>
</configuration>
</toolchain>
</toolchains>
@@ -18,7 +18,9 @@ jobs:
strategy:
fail-fast: false
matrix:
jdk: [8,9,11]
jdk: [8,9,10,11,12,13]

# All JDKs are installed per build machine which is inefficient

env:
JDK_VERSION: ${{ matrix.jdk }}
@@ -52,6 +54,14 @@ jobs:
impl: hotspot
targets: 'JAVA9_HOME'

- name: Install JDK 10
uses: AdoptOpenJDK/install-jdk@v1
with:
version: '10'
architecture: x64
impl: hotspot
targets: 'JAVA10_HOME'

- name: Install JDK 11
uses: AdoptOpenJDK/install-jdk@v1
with:
@@ -60,6 +70,22 @@ jobs:
impl: hotspot
targets: 'JAVA11_HOME'

- name: Install JDK 12
uses: AdoptOpenJDK/install-jdk@v1
with:
version: '12'
architecture: x64
impl: hotspot
targets: 'JAVA12_HOME'

- name: Install JDK 13
uses: AdoptOpenJDK/install-jdk@v1
with:
version: '13'
architecture: x64
impl: hotspot
targets: 'JAVA13_HOME'

- name: Install Matrix JDK
uses: AdoptOpenJDK/install-jdk@v1
with:

0 comments on commit 8f47110

Please sign in to comment.