-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (38 loc) · 1.11 KB
/
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
name: Ubuntu
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout submodules
run: git submodule update --init --recursive
- name: install libopencv-dev
run: |
sudo apt-get update
sudo sudo apt-get install -y libopencv-dev
# - name: Setup interactive tmate session
# uses: mxschmitt/action-tmate@v3
- name: run_build_all
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
mkdir build
cd build
cmake .. -DPython_EXECUTABLE=$(which python) -DCMAKE_BUILD_TYPE=Release
make -j
- name: tests
run: |
source venv/bin/activate
cd build/
cmake --build . --target test
- name: build & test with asan
run: |
source venv/bin/activate
mkdir build_asan && cd build_asan
cmake .. -DPython_EXECUTABLE=$(which python) -DCMAKE_BUILD_TYPE=Debug -DCVNP_ENABLE_ASAN=ON
make -j
./test_cvnp_cpp ../venv/lib/python3.10/site-packages