CMake with static realsense and franka #116
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: CMake | |
on: [push, pull_request] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: install ubuntu dependencies | |
run: | | |
sudo apt-get install libboost-system-dev libfcl-dev | |
APTGETYES=1 make -C rai -j1 installUbuntuAll | |
- name: install python dependencies | |
run: | | |
pip install numpy pybind11 | |
- name: setup build files | |
run: | | |
cp _build_utils/CMakeLists-ubuntu.txt CMakeLists.txt | |
cd $HOME && mkdir -p .local/include && cd .local/include && ln -s /usr/include/libqhull qhull | |
- name: cmake configure | |
run: | | |
export PY_VERSION=`python3 -c "import sys; print(str(sys.version_info[0])+'.'+str(sys.version_info[1]))"` | |
cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_PHYSX=OFF -DUSE_BULLET=OFF -DUSE_LIBFRANKA=OFF -DUSE_REALSENSE=OFF -DPY_VERSION=$PY_VERSION -DUSE_QHULL8=ON . | |
- name: make build | |
run: make -C build |