Merge pull request #335 from ThexXTURBOXx/ci
Test on all supported JDKs
This commit is contained in:
commit
6448d786c4
1 changed files with 6 additions and 2 deletions
8
.github/workflows/maven.yml
vendored
8
.github/workflows/maven.yml
vendored
|
@ -12,13 +12,16 @@ jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [ '8', '11', '16' ] # All currently supported versions
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: '8'
|
java-version: ${{ matrix.java }}
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
@ -27,6 +30,7 @@ jobs:
|
||||||
id: project
|
id: project
|
||||||
- name: 'Upload Artifact'
|
- name: 'Upload Artifact'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
if: ${{ matrix.java == '8' }}
|
||||||
with:
|
with:
|
||||||
name: Bytecode-Viewer-${{ steps.project.outputs.version }}-SNAPSHOT
|
name: Bytecode-Viewer-${{ steps.project.outputs.version }}-SNAPSHOT
|
||||||
path: target/Bytecode-Viewer-${{ steps.project.outputs.version }}.jar
|
path: target/Bytecode-Viewer-${{ steps.project.outputs.version }}.jar
|
||||||
|
|
Loading…
Reference in a new issue