Merge pull request #55 from pjonsson/fix-ci

CI: switch to Github workflows
This commit is contained in:
Joakim Eriksson 2022-05-13 16:09:29 +02:00 committed by GitHub
commit 9f0455e844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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