-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (39 loc) · 1.16 KB
/
build.yml
File metadata and controls
41 lines (39 loc) · 1.16 KB
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
41
name: Build and unit test
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.build_type }} GCC on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build_type: [Release, Debug]
os: [ubuntu-20.04, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install cmake
- name: cmake
run: cmake -B builddir -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: make
run: make -j $(nproc) -C builddir
- name: unit test
run: ./builddir/unit-test
build-llvm:
name: ${{ matrix.build_type }} Clang on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build_type: [Release, Debug]
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install cmake clang systemtap-sdt-dev
- name: cmake
run: CC=clang CXX=clang++ cmake -B builddir -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: make
run: make -j $(nproc) -C builddir
- name: unit test
run: ./builddir/unit-test