CI: add Github workflow

Use the 'zulu' JDK distribution which
provides both LTS and non-LTS versions
of the JDK.
This commit is contained in:
Peter A. Jonsson 2022-05-09 13:14:39 +02:00
parent 732471271d
commit c12a9c81f4
1 changed files with 22 additions and 0 deletions

22
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,22 @@
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '11', '17' ]
name: Java ${{ matrix.Java }} sample
steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build MSPSim
- run: ant compile
- name: Test MSPSim
- run: ant test