Skip to content

Commit

Permalink
Conditionally build SWIG on Ubuntu 24.04 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Oct 1, 2024
1 parent 5f1ca90 commit d2712fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,22 @@ jobs:
path: .deps/kdl

- name: Check out SWIG
if: ${{matrix.os == 'ubuntu-24.04'}}
uses: actions/checkout@v4
with:
repository: swig/swig
ref: v4.2.1
path: .deps/swig

- name: Install dependencies via apt
run: sudo apt-get install -qq ccache libeigen3-dev bison googletest && sudo apt-get remove -y -qq swig
if: ${{matrix.os != 'ubuntu-24.04'}}
run: sudo apt-get install -qq ccache libeigen3-dev swig googletest

- name: Install dependencies via apt (Ubuntu-24.04-specific)
if: ${{matrix.os == 'ubuntu-24.04'}}
run: |
sudo apt-get install -qq ccache libeigen3-dev bison googletest
sudo apt-get remove -y -qq swig
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v2
Expand Down Expand Up @@ -113,6 +121,7 @@ jobs:
sudo cmake --install .deps/kdl/orocos_kdl/build
- name: Build SWIG
if: ${{matrix.os == 'ubuntu-24.04'}}
run: |
cmake -S .deps/swig -B .deps/swig/build $CMAKE_CCACHE_LAUNCHER
cmake --build .deps/swig/build
Expand Down

0 comments on commit d2712fa

Please sign in to comment.