More GitHub actions (#2546)

* add macOS env 
* add validation targets
* use Z3
This commit is contained in:
amai2012 2020-02-20 22:00:14 +01:00 committed by GitHub
parent 6f6f9dd5bc
commit 2708a54c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 8 deletions

View File

@ -7,14 +7,40 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Build
run: |
make -j2
- uses: actions/checkout@v2
- name: Test
run: |
make -j2 check
- name: Install missing software on ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libxml2-utils
sudo apt-get install z3 libz3-dev
- name: Install missing software on macos
if: matrix.os == 'macos-latest'
run: |
brew install z3
- name: Build cppcheck
run: |
make -j2 USE_Z3=yes
- name: Build test
run: |
make -j2 testrunner USE_Z3=yes
- name: Test
run: |
make -j2 check USE_Z3=yes
- name: Validate
run: |
make validateCFG
make validatePlatforms