From 9ae300b8128687052c2ace380b5dd64a4768cd61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20=C5=81ukawski?= Date: Fri, 20 Sep 2024 12:09:53 +0200 Subject: [PATCH] Build SWIG from sources https://github.com/robotology/yarp/issues/3083 --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4c018bcc..1312eb7f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,8 +69,14 @@ jobs: repository: orocos/orocos_kinematics_dynamics path: .deps/kdl + - name: Check out SWIG + uses: actions/checkout@v4 + with: + repository: swig/swig + path: .deps/kdl + - name: Install dependencies via apt - run: sudo apt-get install -qq ccache libeigen3-dev swig googletest + run: sudo apt-get install -qq ccache libeigen3-dev bison googletest - name: Set up CMake uses: jwlawson/actions-setup-cmake@v2 @@ -105,6 +111,12 @@ jobs: cmake --build .deps/kdl/orocos_kdl/build sudo cmake --install .deps/kdl/orocos_kdl/build + - name: Build SWIG + run: | + cmake -S .deps/swig -B .deps/swig/build $CMAKE_CCACHE_LAUNCHER + cmake --build .deps/swig/build + sudo cmake --install .deps/swig/build + - name: Configure kinematics-dynamics run: cmake -S . -B ./build $CMAKE_CCACHE_LAUNCHER -DCREATE_BINDINGS_PYTHON=ON -DENABLE_examples=ON