Fix issue related to ROS2 on 24.04 #198
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ubuntu Build | |
| # Controls when the action will run. | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-24.04] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup | |
| run: ./setup.sh | |
| - name: Build AirLib | |
| run: ./build.sh | |
| - name: Build ROS2 Jammy Wrapper | |
| if: matrix.os == 'ubuntu-22.04' | |
| run: | | |
| chmod +x ./tools/install_ros2_deps.sh | |
| ./tools/install_ros2_deps.sh | |
| source /opt/ros/*/setup.bash | |
| cd ros2 | |
| colcon build --cmake-args -DCMAKE_C_COMPILER=gcc-12 --cmake-args -DCMAKE_CXX_COMPILER=g++-12 | |
| - name: Build ROS2 Foxy Wrapper | |
| if: matrix.os == 'ubuntu-24.04' | |
| run: | | |
| chmod +x ./tools/install_ros2_deps.sh | |
| ./tools/install_ros2_deps.sh | |
| source /opt/ros/*/setup.bash | |
| cd ros2 | |
| colcon build --cmake-args -DCMAKE_C_COMPILER=gcc-12 --cmake-args -DCMAKE_CXX_COMPILER=g++-12 |