Revitalizing all the things! 3/5 #84
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: ant | |
on: [pull_request, push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# Use these Java versions | |
java: [ | |
8, # Minimum supported | |
11, # Java LTS | |
16, # Last version | |
17 # Most recent version | |
] | |
# 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 Ant | |
run: ant -noinput -buildfile build.xml | |
- name: Build standalone JAR | |
if: ${{ matrix.java == 8 && matrix.os == 'ubuntu-latest' }} | |
run: | | |
cd dist | |
ant -noinput -buildfile build.xml | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
if: ${{ matrix.java == 8 && matrix.os == 'ubuntu-latest' }} | |
with: | |
name: standalone-jar | |
path: dist/arrayVisualizer.jar |