forked from cppcheck-opensource/simplecpp
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (27 loc) · 996 Bytes
/
Copy pathCI-unixish.yml
File metadata and controls
38 lines (27 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI Unixish
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
compiler: [clang++, g++]
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install missing software on ubuntu
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install valgrind
- name: make simplecpp
run: make -j$(nproc) CXX=${{ matrix.compiler }}
- name: make test
run: make -j$(nproc) test CXX=${{ matrix.compiler }}
- name: ensure that simplecpp.cpp uses c++03
run: CXX=${{ matrix.compiler }} ; $CXX -fsyntax-only -std=c++98 simplecpp.cpp
- name: Run valgrind
if: matrix.os == 'ubuntu-20.04'
run: |
valgrind --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --gen-suppressions=all --error-exitcode=42 ./testrunner