cppcheck/.github/workflows/CI-unixish.yml

61 lines
1.5 KiB
YAML
Raw Normal View History

# 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
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false # not worthwhile...
runs-on: ${{ matrix.os }}
steps:
- 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
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
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'
- name: Build cppcheck
run: |
make -j2 USE_Z3=yes HAVE_RULES=yes
- name: Build test
run: |
make -j2 testrunner USE_Z3=yes HAVE_RULES=yes
2020-05-03 10:10:39 +02:00
- name: Run test
run: |
make -j2 check USE_Z3=yes HAVE_RULES=yes
- name: Validate
run: |
make validateCFG
make 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
make -j2