2021-04-05 12:02:27 +02:00
|
|
|
name: Validate Java e2e
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2021-04-12 10:08:05 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '0 */12 * * *'
|
2021-08-06 12:12:36 +02:00
|
|
|
workflow_dispatch:
|
2021-04-05 12:02:27 +02:00
|
|
|
jobs:
|
|
|
|
setup-java-major-versions:
|
|
|
|
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
2021-12-08 19:50:14 +01:00
|
|
|
distribution: ['temurin', 'adopt', 'adopt-openj9', 'zulu', 'liberica', 'microsoft' ] # internally 'adopt-hotspot' is the same as 'adopt'
|
2021-08-06 12:12:36 +02:00
|
|
|
version: ['8', '11', '16']
|
2021-12-08 19:50:14 +01:00
|
|
|
exclude:
|
|
|
|
- distribution: microsoft
|
|
|
|
version: 8
|
2021-04-05 12:02:27 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-java
|
|
|
|
uses: ./
|
|
|
|
id: setup-java
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.version }}
|
|
|
|
distribution: ${{ matrix.distribution }}
|
|
|
|
- name: Verify Java
|
|
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
setup-java-major-minor-versions:
|
|
|
|
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
|
|
|
|
needs: setup-java-major-versions
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
2021-11-29 10:15:06 +01:00
|
|
|
distribution: ['temurin', 'zulu', 'liberica']
|
2021-04-05 12:02:27 +02:00
|
|
|
version:
|
|
|
|
- '11.0'
|
2021-08-23 10:09:55 +02:00
|
|
|
- '8.0.302'
|
|
|
|
- '16.0.2+7'
|
2021-04-05 12:02:27 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-java
|
|
|
|
uses: ./
|
|
|
|
id: setup-java
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.version }}
|
|
|
|
distribution: ${{ matrix.distribution }}
|
|
|
|
- name: Verify Java
|
|
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
setup-java-check-latest:
|
|
|
|
name: ${{ matrix.distribution }} ${{ matrix.version }} - check-latest flag - ${{ matrix.os }}
|
|
|
|
needs: setup-java-major-versions
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
2021-11-29 10:15:06 +01:00
|
|
|
distribution: ['temurin', 'zulu', 'liberica']
|
2021-04-05 12:02:27 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-java
|
|
|
|
uses: ./
|
|
|
|
id: setup-java
|
|
|
|
with:
|
|
|
|
distribution: ${{ matrix.distribution }}
|
|
|
|
java-version: 11
|
|
|
|
check-latest: true
|
|
|
|
- name: Verify Java
|
|
|
|
run: bash __tests__/verify-java.sh "11" "${{ steps.setup-java.outputs.path }}"
|
|
|
|
shell: bash
|
2021-05-17 15:33:21 +02:00
|
|
|
|
2021-04-05 12:02:27 +02:00
|
|
|
setup-java-ea-versions-zulu:
|
|
|
|
name: zulu ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
|
|
|
|
needs: setup-java-major-minor-versions
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
|
|
version: ['17-ea', '15.0.0-ea.14']
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-java
|
|
|
|
uses: ./
|
|
|
|
id: setup-java
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.version }}
|
|
|
|
distribution: zulu
|
|
|
|
- name: Verify Java
|
|
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
|
|
|
shell: bash
|
|
|
|
|
2021-08-06 12:12:36 +02:00
|
|
|
setup-java-ea-versions-temurin:
|
|
|
|
name: temurin ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
|
|
|
|
needs: setup-java-major-minor-versions
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
|
|
version: ['17-ea']
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-java
|
|
|
|
uses: ./
|
|
|
|
id: setup-java
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.version }}
|
|
|
|
distribution: temurin
|
|
|
|
- name: Verify Java
|
|
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
|
|
|
shell: bash
|
|
|
|
|
2021-04-05 12:02:27 +02:00
|
|
|
setup-java-custom-package-type:
|
|
|
|
name: ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}-x64) - ${{ matrix.os }}
|
|
|
|
needs: setup-java-major-minor-versions
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
2021-11-29 10:15:06 +01:00
|
|
|
distribution: ['temurin', 'zulu', 'liberica']
|
2021-04-05 12:02:27 +02:00
|
|
|
java-package: ['jre']
|
2021-08-23 10:09:55 +02:00
|
|
|
version: ['16.0']
|
2021-04-05 12:02:27 +02:00
|
|
|
include:
|
|
|
|
- distribution: 'zulu'
|
|
|
|
java-package: jre+fx
|
|
|
|
version: '8'
|
|
|
|
os: ubuntu-latest
|
|
|
|
- distribution: 'zulu'
|
|
|
|
java-package: jdk+fx
|
|
|
|
version: '8.0.242'
|
|
|
|
os: ubuntu-latest
|
2021-11-29 10:15:06 +01:00
|
|
|
- distribution: 'liberica'
|
|
|
|
java-package: jdk+fx
|
|
|
|
version: '8'
|
|
|
|
os: ubuntu-latest
|
|
|
|
- distribution: 'liberica'
|
|
|
|
java-package: jre+fx
|
|
|
|
version: '11'
|
|
|
|
os: ubuntu-latest
|
2021-08-06 12:12:36 +02:00
|
|
|
exclude:
|
|
|
|
# Eclipse Temurin currently doesn't publish JREs, only JDKs
|
|
|
|
- distribution: 'temurin'
|
|
|
|
java-package: 'jre'
|
2021-04-05 12:02:27 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-java
|
|
|
|
uses: ./
|
|
|
|
id: setup-java
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.version }}
|
|
|
|
java-package: ${{ matrix.java-package }}
|
|
|
|
distribution: ${{ matrix.distribution }}
|
|
|
|
- name: Verify Java
|
|
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
|
|
|
shell: bash
|
|
|
|
|
2021-12-08 19:50:14 +01:00
|
|
|
# Only Liberica and Zulu provide x86
|
|
|
|
setup-java-x86:
|
|
|
|
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-${{ matrix.architecture }}) - ${{ matrix.os }}
|
2021-04-05 12:02:27 +02:00
|
|
|
needs: setup-java-major-minor-versions
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-12-08 19:50:14 +01:00
|
|
|
# x86 is not supported on macOS
|
2021-04-05 12:02:27 +02:00
|
|
|
os: [windows-latest, ubuntu-latest]
|
2021-12-08 19:50:14 +01:00
|
|
|
distribution: ['liberica', 'zulu']
|
2021-04-05 12:02:27 +02:00
|
|
|
version: ['11']
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-java
|
|
|
|
uses: ./
|
|
|
|
id: setup-java
|
|
|
|
with:
|
|
|
|
distribution: ${{ matrix.distribution }}
|
|
|
|
java-version: ${{ matrix.version }}
|
2021-12-08 19:50:14 +01:00
|
|
|
architecture: 'x86'
|
2021-04-05 12:02:27 +02:00
|
|
|
- name: Verify Java
|
|
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
2021-05-17 15:33:21 +02:00
|
|
|
shell: bash
|
2021-12-08 19:50:14 +01:00
|
|
|
|
|
|
|
# Only Microsoft provides AArch64. However, GitHub-hosted runners do not support this architecture.
|