Skip to content

Commit

Permalink
[github]: fix clang and pybind11 #2
Browse files Browse the repository at this point in the history
  • Loading branch information
costashatz committed Jan 25, 2022
1 parent c62388c commit d536a5e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ci/install_dart_latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ cd ~/.deps
python_dist_dir=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True, prefix=''))")
mkdir -p ~/.dart_install/$python_dist_dir

git clone git://github.com/dartsim/dart.git
cd dart
git checkout $DART_TAG
mkdir build
cd build
# Select Compiler
if [ "$COMPILER" = "gcc" ]; then
export CC=/usr/bin/gcc && export CXX=/usr/bin/g++
Expand All @@ -25,8 +20,15 @@ if [ "$COMPILER" = "clang" ]; then
cmake .. -DCMAKE_BUILD_TYPE=Release -DPYBIND11_TEST=OFF
make -j4
sudo make install
cd ../..
fi

git clone git://github.com/dartsim/dart.git
cd dart
git checkout $DART_TAG
mkdir build
cd build

# Build DART
if [ "$BUILD_PYTHON" = "ON" ]; then
cmake -DDART_BUILD_DARTPY=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=/home/runner/.dart_install ..
Expand Down

0 comments on commit d536a5e

Please sign in to comment.