From 7a0b57f9d4c3227b1ba53762b36a8af0d83cced1 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Wed, 18 Nov 2020 21:37:10 -0500 Subject: [PATCH 1/4] Github actions can build and test major Java versions on the three popular operating systems. --- .github/workflows/build-and-test.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9b0e384d92..ea9cc94165 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -4,15 +4,20 @@ on: [push, pull_request] jobs: build-and-test: - runs-on: ubuntu-latest - + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-2016] + java: [11, 11.0.9, 12, 13, 13.0.4, 14, 15, 16-ea] + fail-fast: false + max-parallel: 4 + name: Build and Test JDK ${{ matrix.java }}, ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: ${{ matrix.java }} - uses: actions/cache@v1 with: path: ~/.m2/repository From 929f741d02650ca6f0b586ad7f79d94024691b28 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Wed, 18 Nov 2020 21:44:38 -0500 Subject: [PATCH 2/4] Added Java 8, 8.0.192 to matrix for building and testing. --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ea9cc94165..6e7b609f78 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macOS-latest, windows-2016] - java: [11, 11.0.9, 12, 13, 13.0.4, 14, 15, 16-ea] + java: [8, 8.0.192, 11, 11.0.9, 12, 13, 13.0.4, 14, 15, 16-ea] fail-fast: false max-parallel: 4 name: Build and Test JDK ${{ matrix.java }}, ${{ matrix.os }} From 8d8f34c53d7835f860991e57850fff2e6286b810 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Wed, 18 Nov 2020 22:13:31 -0500 Subject: [PATCH 3/4] Builds and tests all major Java versions on the latest Ubuntu and MacOS operating systems. --- .github/workflows/build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 6e7b609f78..8397425494 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -7,8 +7,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macOS-latest, windows-2016] - java: [8, 8.0.192, 11, 11.0.9, 12, 13, 13.0.4, 14, 15, 16-ea] + java: [8, 8.0.192, 11, 11.0.9, 12, 13, 13.0.4, 14.0.2, 15] + os: [ubuntu-latest, macOS-latest] fail-fast: false max-parallel: 4 name: Build and Test JDK ${{ matrix.java }}, ${{ matrix.os }} From ec874c7f75d7165979515f3f646b7c32aaf9ffae Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Sun, 29 Nov 2020 23:50:25 -0500 Subject: [PATCH 4/4] Only include major versions of Java. --- .github/workflows/build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 8397425494..8e167bd32c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -7,10 +7,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - java: [8, 8.0.192, 11, 11.0.9, 12, 13, 13.0.4, 14.0.2, 15] + java: [8, 11, 15] os: [ubuntu-latest, macOS-latest] fail-fast: false - max-parallel: 4 + max-parallel: 3 name: Build and Test JDK ${{ matrix.java }}, ${{ matrix.os }} steps: - uses: actions/checkout@v2