maven #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: maven | |
on: [pull_request, push, workflow_dispatch] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# Use these Java versions | |
java: [8, 11, 17, 21] | |
# and run on both Linux and Windows | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/[email protected] | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: zulu | |
- name: Build with Maven | |
run: mvn clean install | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
if: ${{ matrix.java == 8 && matrix.os == 'ubuntu-latest' }} | |
with: | |
name: standalone-jar | |
path: target/ArrayV-*.jar |