Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI tests
2
3 on: [push, workflow_dispatch]
4
5 jobs:
6 linux:
7
8 runs-on: ubuntu-latest
9 strategy:
10 fail-fast: false
11 matrix:
12 cmake_opts:
13 - '-DCMARK_SHARED=ON'
14 - ''
15 compiler:
16 - c: 'clang'
17 cpp: 'clang++'
18 - c: 'gcc'
19 cpp: 'g++'
20 env:
21 CMAKE_OPTIONS: ${{ matrix.cmake_opts }}
22 CC: ${{ matrix.compiler.c }}
23 CXX: ${{ matrix.compiler.cpp }}
24
25 steps:
26 - uses: actions/checkout@v1
27 - name: Install valgrind
28 run: |
29 sudo apt install -y valgrind
30 - name: Build and test
31 run: |
32 make
33 make test
34 make leakcheck
35
36 macos:
37
38 runs-on: macOS-latest
39 strategy:
40 fail-fast: false
41 matrix:
42 cmake_opts:
43 - '-DCMARK_SHARED=ON'
44 - ''
45 compiler:
46 - c: 'clang'
47 cpp: 'clang++'
48 - c: 'gcc'
49 cpp: 'g++'
50 env:
51 CMAKE_OPTIONS: ${{ matrix.cmake_opts }}
52 CC: ${{ matrix.compiler.c }}
53 CXX: ${{ matrix.compiler.cpp }}
54
55 steps:
56 - uses: actions/checkout@v1
57 - name: Build and test
58 env:
59 CMAKE_OPTIONS: -DCMARK_SHARED=OFF
60 run: |
61 make
62 make test
63
64 windows:
65
66 runs-on: windows-latest
67 strategy:
68 fail-fast: false
69 matrix:
70 cmake_opts:
71 - '-DCMARK_SHARED=ON'
72 - ''
73 env:
74 CMAKE_OPTIONS: ${{ matrix.cmake_opts }}
75
76 steps:
77 - uses: actions/checkout@v1
78 - uses: ilammy/msvc-dev-cmd@v1
79 - name: Build and test
80 run: |
81 chcp 65001
82 nmake.exe /nologo /f Makefile.nmake test
83 shell: cmd