Skip to content

Commit

Permalink
BUILD multi-os matrix; separate section for Java 6/7
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Dec 7, 2021
1 parent 6514000 commit a8b658a
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Build
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest

build-java-8-plus:
strategy:
matrix:
java-version: [ 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18-ea ]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -26,3 +26,28 @@ jobs:
- name: Build
continue-on-error: true
run: ./gradlew build --no-daemon

build-java-5-6-7:
strategy:
matrix:
java-version: [ 6, 7 ]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
cache: gradle

- name: Build
continue-on-error: true
uses: gradle/gradle-build-action@v2
with:
gradle-version: 6.9
arguments: build

0 comments on commit a8b658a

Please sign in to comment.