-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 880 Bytes
/
build.yml
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
39
40
# Build and run tests on the baseline platform
name: build
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- BUILD_TYPE: Release
CC: gcc
- BUILD_TYPE: Check
CC: gcc
- BUILD_TYPE: ASan
CC: gcc
- BUILD_TYPE: MemSan
CC: clang
- BUILD_TYPE: Debug
CC: clang
steps:
- name: Get source
uses: actions/checkout@v3
- name: Configure CMake
run: >
CC=${{matrix.CC}} cmake
-B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --verbose