Skip to content

Commit 6448d78

Browse files
authored
Merge pull request #335 from ThexXTURBOXx/ci
Test on all supported JDKs
2 parents 932d135 + dfc4572 commit 6448d78

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/maven.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ jobs:
1212
build:
1313

1414
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
java: [ '8', '11', '16' ] # All currently supported versions
1518

1619
steps:
1720
- uses: actions/checkout@v2
18-
- name: Set up JDK 8
21+
- name: Set up JDK ${{ matrix.java }}
1922
uses: actions/setup-java@v2
2023
with:
21-
java-version: '8'
24+
java-version: ${{ matrix.java }}
2225
distribution: 'adopt'
2326
- name: Build with Maven
2427
run: mvn -B package --file pom.xml
@@ -27,6 +30,7 @@ jobs:
2730
id: project
2831
- name: 'Upload Artifact'
2932
uses: actions/upload-artifact@v2
33+
if: ${{ matrix.java == '8' }}
3034
with:
3135
name: Bytecode-Viewer-${{ steps.project.outputs.version }}-SNAPSHOT
3236
path: target/Bytecode-Viewer-${{ steps.project.outputs.version }}.jar

0 commit comments

Comments
 (0)