Skip to content

Commit 2f60a43

Browse files
authored
Merge pull request #169 from resibots/fix_ci
Fix pybind11 for clang (again)
2 parents e93fcac + be21226 commit 2f60a43

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/ci_linux.yml

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
- name: Build DART
4747
if: steps.cache-dart.outputs.cache-hit != 'true'
4848
run: ${{github.workspace}}/ci/install_dart_latest.sh
49+
- name: Build pybind11
50+
if: steps.cache-dart.outputs.cache-hit == 'true'
51+
run: ${{github.workspace}}/ci/install_pybind11.sh
4952
- name: Build Magnum
5053
run: if [ "$MAGNUM_GUI" = "ON" ]; then ${{github.workspace}}/ci/install_magnum.sh ; fi
5154
- name: Build robot_dart

ci/install_pybind11.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +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

0 commit comments

Comments
 (0)