From af2f7715976cd1cfd849e09988b60f94f52d1875 Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Sun, 25 Jul 2021 11:32:04 +0200 Subject: [PATCH 1/2] Test on all supported JDKs --- .github/workflows/maven.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4a8b2b7f..d8eea9fd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -12,13 +12,16 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8', '11', '16' ] # All currently supported versions steps: - uses: actions/checkout@v2 - - name: Set up JDK 8 + - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: - java-version: '8' + java-version: ${{ matrix.java }} distribution: 'adopt' - name: Build with Maven run: mvn -B package --file pom.xml From dfc45724d7df42a7dc76ebb865569f34f7bbd4da Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Sun, 25 Jul 2021 11:50:06 +0200 Subject: [PATCH 2/2] Fix upload of artifacts --- .github/workflows/maven.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d8eea9fd..b90f13f3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -30,6 +30,7 @@ jobs: id: project - name: 'Upload Artifact' uses: actions/upload-artifact@v2 + if: ${{ matrix.java == '8' }} with: name: Bytecode-Viewer-${{ steps.project.outputs.version }}-SNAPSHOT path: target/Bytecode-Viewer-${{ steps.project.outputs.version }}.jar