2020-02-13 09:16:53 +01:00
|
|
|
# Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
|
|
|
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
|
2020-04-16 21:37:32 +02:00
|
|
|
name: CI-unixish
|
2020-02-13 09:16:53 +01:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2020-02-20 22:00:14 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
2020-04-19 10:46:51 +02:00
|
|
|
fail-fast: false # not worthwhile...
|
2020-02-20 22:00:14 +01:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-02-13 09:16:53 +01:00
|
|
|
|
|
|
|
steps:
|
2020-02-20 22:00:14 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install missing software on ubuntu
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
run: |
|
2020-04-07 20:30:10 +02:00
|
|
|
sudo apt-get update
|
2020-02-20 22:00:14 +01:00
|
|
|
sudo apt-get install libxml2-utils
|
|
|
|
sudo apt-get install z3 libz3-dev
|
2020-05-13 05:03:32 +02:00
|
|
|
cp externals/z3_version_old.h externals/z3_version.h
|
2020-02-20 22:00:14 +01:00
|
|
|
|
|
|
|
- name: Install missing software on macos
|
|
|
|
if: matrix.os == 'macos-latest'
|
|
|
|
run: |
|
|
|
|
brew install z3
|
2020-05-03 10:10:39 +02:00
|
|
|
|
|
|
|
- name: Install Qt
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
uses: jurplel/install-qt-action@v2
|
|
|
|
with:
|
|
|
|
modules: 'qtcharts'
|
2020-02-20 22:00:14 +01:00
|
|
|
|
|
|
|
- name: Build cppcheck
|
|
|
|
run: |
|
2020-05-13 05:03:32 +02:00
|
|
|
cp externals/z3_version_old.h externals/z3_version.h
|
2020-07-30 10:36:06 +02:00
|
|
|
make -j$(nproc) USE_Z3=yes HAVE_RULES=yes
|
2020-02-20 22:00:14 +01:00
|
|
|
|
|
|
|
- name: Build test
|
|
|
|
run: |
|
2020-07-30 10:36:06 +02:00
|
|
|
make -j$(nproc) testrunner USE_Z3=yes HAVE_RULES=yes
|
2020-02-20 22:00:14 +01:00
|
|
|
|
2020-05-03 10:10:39 +02:00
|
|
|
- name: Run test
|
2020-02-20 22:00:14 +01:00
|
|
|
run: |
|
2020-07-30 10:36:06 +02:00
|
|
|
make -j$(nproc) check USE_Z3=yes HAVE_RULES=yes
|
2020-02-20 22:00:14 +01:00
|
|
|
|
|
|
|
- name: Validate
|
|
|
|
run: |
|
2020-07-30 10:36:06 +02:00
|
|
|
make -j$(nproc) validateCFG validatePlatforms
|
2020-05-03 10:10:39 +02:00
|
|
|
|
|
|
|
- name: Build GUI on ubuntu
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
run: |
|
|
|
|
pushd gui
|
|
|
|
qmake HAVE_QCHART=yes
|
2020-07-30 10:36:06 +02:00
|
|
|
make -j$(nproc)
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: cppcheck_cli
|
|
|
|
path: ./cppcheck
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: cppcheck_cli
|
|
|
|
path: ./**/cfg/*.cfg
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: cppcheck_cli
|
|
|
|
path: ./**/platforms/*.xml
|