-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (27 loc) · 917 Bytes
/
ci.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure
run: cmake -B ${{github.workspace}}/build
- name: Configure (fuzz)
run: cmake -B ${{github.workspace}}/build.fuzz -DENABLE_FUZZING=On -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Build (examples)
run: cmake --build ${{github.workspace}}/build --target examples
- name: Build (tools)
run: cmake --build ${{github.workspace}}/build --target tools
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
- name: Test (fuzz)
working-directory: ${{github.workspace}}/build.fuzz
run: cmake --build . --target fuzz_check_all