From c12a9c81f458ea2c08709b9bb681b1fdb3ffe94f Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Mon, 9 May 2022 13:14:39 +0200 Subject: [PATCH] CI: add Github workflow Use the 'zulu' JDK distribution which provides both LTS and non-LTS versions of the JDK. --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e1eee63 --- /dev/null +++ b/.github/workflows/build.yml @@ -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