build (ROS 2 Jazzy) #251
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: build (ROS 2 Jazzy) | |
| on: | |
| schedule: | |
| - cron: '0 22 * * *' # UTC -> JST 07:00 | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| jazzy_build: | |
| name: Build on Jazzy | |
| runs-on: ubuntu-24.04 | |
| container: ros:jazzy | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Copy repository | |
| run: | | |
| mkdir -p ~/ros2_ws/src/waypoint_editor | |
| cp -rf . ~/ros2_ws/src/waypoint_editor | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| source /opt/ros/jazzy/setup.bash | |
| apt-get update | |
| apt-get install -y python3-rosdep git | |
| rosdep update || (rosdep init && rosdep update) | |
| cd ~/ros2_ws/src | |
| rosdep install -r -y --from-paths . --ignore-src | |
| - name: Build package | |
| shell: bash | |
| run: | | |
| source /opt/ros/jazzy/setup.bash | |
| apt-get update | |
| apt-get install -y python3-colcon-common-extensions | |
| cd ~/ros2_ws | |
| colcon build |