Fixes for numpy2 / (Fixes #17) #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |