mirror of
https://github.com/actions/setup-java.git
synced 2024-11-27 12:09:02 +00:00
4b1b3d4a82
* Add support for Adoptium OpenJDK Refs https://github.com/actions/setup-java/issues/191 * Rename distribution to Eclipse Temurin * Update end-to-end tests in GitHub workflows * Exclude e2e tests for Temurin JREs for now * fix version * Update e2e-versions.yml * Handle Eclipse Temurin version suffixes ("beta") * Add test for new version suffix "beta" * Add updated `index.js` * fix an issue Co-authored-by: Maxim Lobanov <maxim-lobanov@github.com>
235 lines
7.3 KiB
YAML
235 lines
7.3 KiB
YAML
name: Validate Java e2e
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- releases/*
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
schedule:
|
|
- cron: '0 */12 * * *'
|
|
workflow_dispatch:
|
|
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]
|
|
distribution: ['adopt', 'adopt-openj9', 'temurin', 'zulu'] # internally 'adopt-hotspot' is the same as 'adopt'
|
|
version: ['8', '11', '16']
|
|
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]
|
|
distribution: ['adopt', 'zulu']
|
|
version:
|
|
- '11.0'
|
|
- '8.0.282'
|
|
- '11.0.2+7'
|
|
include:
|
|
- distribution: 'adopt'
|
|
version: '12.0.2+10.1'
|
|
os: macos-latest
|
|
- distribution: 'adopt'
|
|
version: '12.0.2+10.1'
|
|
os: windows-latest
|
|
- distribution: 'adopt'
|
|
version: '12.0.2+10.1'
|
|
os: ubuntu-latest
|
|
- distribution: 'temurin'
|
|
version: '16.0.2+7'
|
|
os: macos-latest
|
|
- distribution: 'temurin'
|
|
version: '16.0.2+7'
|
|
os: windows-latest
|
|
- distribution: 'temurin'
|
|
version: '16.0.2+7'
|
|
os: ubuntu-latest
|
|
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]
|
|
distribution: ['adopt', 'temurin', 'zulu']
|
|
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
|
|
|
|
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
|
|
|
|
setup-java-ea-versions-adopt:
|
|
name: adopt ${{ 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.1.202003160455']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: setup-java
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
java-version: ${{ matrix.version }}
|
|
distribution: adopt
|
|
- name: Verify Java
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
|
shell: bash
|
|
|
|
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
|
|
|
|
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]
|
|
distribution: ['adopt', 'temurin', 'zulu']
|
|
java-package: ['jre']
|
|
version:
|
|
- '16.0'
|
|
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
|
|
exclude:
|
|
# Eclipse Temurin currently doesn't publish JREs, only JDKs
|
|
- distribution: 'temurin'
|
|
java-package: 'jre'
|
|
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
|
|
|
|
setup-java-custom-architecture:
|
|
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-x86) - ${{ matrix.os }}
|
|
needs: setup-java-major-minor-versions
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Only Zulu provides x86 arch for now and only for windows / ubuntu
|
|
os: [windows-latest, ubuntu-latest]
|
|
distribution: ['zulu']
|
|
version: ['11']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: setup-java
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: ${{ matrix.distribution }}
|
|
java-version: ${{ matrix.version }}
|
|
architecture: x86
|
|
- name: Verify Java
|
|
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
|
|
shell: bash
|