Skip to content

Commit 0526da6

Browse files
authored
Merge pull request #200 from resibots/fix_ci
Fix CI
2 parents 6af12d8 + dee759a commit 0526da6

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

.github/workflows/ci_linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [ubuntu-20.04]
21+
os: [ubuntu-22.04]
2222
build_type: [Release]
2323
build_python: [ON]
2424
compiler: [gcc, clang]
2525
magnum_gui: [ON, OFF]
26-
dart_tag: ["v6.12.1"]
26+
dart_tag: ["v6.13.1"]
2727
env:
2828
COMPILER: ${{ matrix.compiler }}
2929
BUILD_TYPE: ${{ matrix.build_type }}
@@ -63,9 +63,9 @@ jobs:
6363
fi
6464
cd ${{github.workspace}}
6565
if [ "$BUILD_PYTHON" = "ON" ]; then
66-
./waf configure --python --prefix=/usr --dart=~/.dart_install ;
66+
./waf configure --tests --python --prefix=/usr --dart=~/.dart_install ;
6767
else
68-
./waf configure --prefix=/usr --dart=~/.dart_install ;
68+
./waf configure --tests --prefix=/usr --dart=~/.dart_install ;
6969
fi
7070
./waf
7171
- name: Run tests

ci/install_dart_latest.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ if [ "$COMPILER" = "clang" ]; then
1212
export CC=/usr/bin/clang && export CXX=/usr/bin/clang++
1313
fi
1414

15-
# Build pybind11 if needed; for clang we need at least v2.5.0
16-
if [ "$COMPILER" = "clang" ]; then
17-
git clone https://github.com/pybind/pybind11 -b 'v2.5.0' --single-branch --depth 1
18-
cd pybind11
19-
mkdir build && cd build
20-
cmake .. -DCMAKE_BUILD_TYPE=Release -DPYBIND11_TEST=OFF
21-
make -j4
22-
sudo make install
23-
cd ../..
24-
fi
15+
# # Build pybind11 if needed; for clang we need at least v2.5.0
16+
# if [ "$COMPILER" = "clang" ]; then
17+
# git clone https://github.com/pybind/pybind11 -b 'v2.5.0' --single-branch --depth 1
18+
# cd pybind11
19+
# mkdir build && cd build
20+
# cmake .. -DCMAKE_BUILD_TYPE=Release -DPYBIND11_TEST=OFF
21+
# make -j4
22+
# sudo make install
23+
# cd ../..
24+
# fi
2525

2626
git clone https://github.com/dartsim/dart.git
2727
cd dart
@@ -45,7 +45,7 @@ sudo ldconfig
4545
cd $CI_HOME
4646

4747
# Hack for dartpy installation
48-
python_file=/usr/lib/python3/dist-packages/dartpy.cpython-38-x86_64-linux-gnu.so
48+
python_file=/usr/lib/python3/dist-packages/dartpy.cpython-310-x86_64-linux-gnu.so
4949
if [ -f "$python_file" ]; then
5050
cp $python_file ~/.dart_install/$python_dist_dir
5151
fi

ci/install_packages.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ sudo apt-get -qq update
22
sudo apt-get -y install software-properties-common mlocate
33
sudo apt-add-repository -y ppa:dartsim/ppa
44
sudo apt-get -qq update
5-
sudo apt-get install -y --no-install-recommends build-essential cmake pkg-config git libeigen3-dev libccd-dev libfcl-dev libboost-regex-dev libboost-system-dev libbullet-dev libode-dev liboctomap-dev libtinyxml-dev libtinyxml2-dev liburdfdom-dev liburdfdom-headers-dev python3-pip python3-numpy libpython3-dev libxi-dev libxmu-dev freeglut3-dev libopenscenegraph-dev libassimp-dev
5+
sudo apt-get install -y --no-install-recommends build-essential cmake pkg-config git libeigen3-dev libccd-dev libfcl-dev libboost-regex-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libbullet-dev libode-dev liboctomap-dev libtinyxml-dev libtinyxml2-dev liburdfdom-dev liburdfdom-headers-dev python3-pip python3-numpy libpython3-dev libxi-dev libxmu-dev freeglut3-dev libopenscenegraph-dev libassimp-dev libfmt-dev pybind11-dev
66

77
sudo ln -s /usr/bin/python3 /usr/bin/python
88

9-
# if gcc, we can safely use the official package, for clang we need to build it
10-
if [ "$COMPILER" = "gcc" ]; then
11-
sudo apt-get install -y --no-install-recommends pybind11-dev
12-
fi
9+
# # if gcc, we can safely use the official package, for clang we need to build it
10+
# if [ "$COMPILER" = "gcc" ]; then
11+
# sudo apt-get install -y --no-install-recommends pybind11-dev
12+
# fi
1313

1414
if [ "$MAGNUM_GUI" = "ON" ]; then
1515
sudo apt-get install -y --no-install-recommends libopenal-dev libglfw3-dev libsdl2-dev libdevil-dev libpng-dev libfaad-dev libfreetype6-dev libglm-dev

ci/install_pybind11.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Build pybind11 if needed; for clang we need at least v2.5.0
2-
if [ "$COMPILER" = "clang" ]; then
3-
git clone https://github.com/pybind/pybind11 -b 'v2.5.0' --single-branch --depth 1
4-
cd pybind11
5-
mkdir build && cd build
6-
cmake .. -DCMAKE_BUILD_TYPE=Release -DPYBIND11_TEST=OFF
7-
make -j4
8-
sudo make install
9-
cd ../..
10-
fi
1+
# # Build pybind11 if needed; for clang we need at least v2.5.0
2+
# if [ "$COMPILER" = "clang" ]; then
3+
# git clone https://github.com/pybind/pybind11 -b 'v2.5.0' --single-branch --depth 1
4+
# cd pybind11
5+
# mkdir build && cd build
6+
# cmake .. -DCMAKE_BUILD_TYPE=Release -DPYBIND11_TEST=OFF
7+
# make -j4
8+
# sudo make install
9+
# cd ../..
10+
# fi

wscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def configure_robot_dart(conf):
103103
conf.check(features='cxx cxxprogram', lib=['pthread'], uselib_store='PTHREAD')
104104
conf.check_eigen(required=True, min_version=(3,2,92))
105105
conf.check_dart(required=True)
106-
if conf.env['DART_REQUIRES_BOOST']:
106+
if conf.env['DART_REQUIRES_BOOST'] or conf.options.tests:
107107
conf.check_boost(lib='regex system filesystem unit_test_framework', min_version='1.58')
108108
conf.check_corrade(components='Utility PluginManager', required=False)
109109
conf.env['magnum_dep_libs'] = 'MeshTools Primitives Shaders SceneGraph GlfwApplication Text MagnumFont'

0 commit comments

Comments
 (0)