-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (31 loc) · 974 Bytes
/
test_core_cpp.yaml
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: test_cpp_core
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: update submodule
run: git submodule update --init --depth=1
- name: Install apt packages
run: |
sudo apt-get install libeigen3-dev libgtest-dev
- name: Build c++ via cmake
run: |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig"
mkdir build
cd build
cmake -DBUILD_PYTHON_INTERFACE=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=ON ..
make
- name: Test c++
run: |
cd build
ctest --verbose
./bench_tinyfk