-
Notifications
You must be signed in to change notification settings - Fork 38
48 lines (41 loc) · 945 Bytes
/
ubuntu.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
41
42
43
44
45
46
47
48
name: Ubuntu
on:
workflow_dispatch:
pull_request:
branches: [master]
paths:
- '**/CMakeLists.txt'
- '**.cpp'
- '**.h'
- 'tests/**'
- 'external/**'
jobs:
build-ubuntu:
name: Build and run tests (GCC-${{ matrix.gcc }})
runs-on: ubuntu-18.04
strategy:
matrix:
gcc: [9, 10]
steps:
- uses: actions/checkout@v2
- name: Configure CMake
env:
CC: gcc-${{ matrix.gcc }}
CXX: g++-${{ matrix.gcc }}
run: |
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release\
-DTWEEDLEDUM_TESTS=ON \
-DTWEEDLEDUM_PYBINDS=ON
- name: Build tests
working-directory: build
run: make -j2 run_tests
- name: Build python lib
working-directory: build
run: make -j2 _tweedledum
- name: Run tests
working-directory: build
run: |
./tests/run_tests