Skip to content

Shrink GH actions build matrix down to two versions #3

Shrink GH actions build matrix down to two versions

Shrink GH actions build matrix down to two versions #3

Workflow file for this run

name: Build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ '21', '22' ] ## TODO: Figure out why matrix with additional version '23'
vendor: ['oracle'] ## and additional vendor 'temurin' is not working
name: Build with JDK ${{ matrix.version }} - ${{ matrix.vendor }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Gradle Build
run: ./gradlew build -Dmatrix.version=${{ matrix.version }} -Dmatrix.vendor=${{ matrix.vendor }}