github workflow #141
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-22.04 | |
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 | |
APTGETYES=1 make -C rai -j1 installUbuntuAll | |
- name: install source dependencies | |
run: | | |
wget https://github.com/MarcToussaint/rai-extern/raw/main/install.sh; chmod a+x install.sh | |
./install.sh libccd | |
./install.sh fcl | |
- 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_VER=`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 -DUSE_H5=OFF -DPY_VERSION=$PY_VER -DUSE_QHULL8=ON | |
- name: build | |
run: make -C build _robotic bot install | |
- name: test | |
run: ry-info |