From b4744248aed1bcd738084decf7d738e60166e95f Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Thu, 16 May 2024 18:37:07 +0200 Subject: [PATCH] Matrix build --- .github/workflows/maven-publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 2534dd1e..324fa1da 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -11,13 +11,17 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + java: [ '11', '17', '21' ] + name: Java ${{ matrix.Java }} build steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 + - name: Set up JDK ${{ matrix.Java }} uses: actions/setup-java@v4 with: - java-version: '11' + java-version: ${{ matrix.Java }} distribution: 'adopt' server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME