From 2adc695930af895a6cf6085464b4e6af35f80c8e Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Fri, 24 May 2024 20:47:57 +0200 Subject: [PATCH] Added Matrix build --- .github/workflows/{maven.yml => maven-publish.yml} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename .github/workflows/{maven.yml => maven-publish.yml} (90%) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-publish.yml similarity index 90% rename from .github/workflows/maven.yml rename to .github/workflows/maven-publish.yml index 17f8932f6..7dc942a30 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven-publish.yml @@ -25,13 +25,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 server-username: MAVEN_USERNAME