colcon build #131
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: colcon build | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 5' # Every Friday at midnight UTC | |
| push: | |
| branches: [ jazzy ] | |
| pull_request: | |
| branches: [ jazzy ] # Adjust this if your default branch is different | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| base_image: [hardware, gazebo, gazebo-cuda] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create fake udev directory for hardware builds | |
| run: | | |
| sudo mkdir -p /etc/udev/rules.d | |
| bash install.bash --laser ld19 --udev-only | |
| cat /etc/udev/rules.d/ldlidar.rules | |
| - name: Install and Build ROS2 environment - ${{ matrix.base_image }} | |
| run: | | |
| export ROS_DISTRO=jazzy | |
| export ROBOT_BASE=2wd | |
| export LASER_SENSOR=ld19 | |
| export BASE_IMAGE=${{ matrix.base_image }} | |
| cd docker && docker compose build | |
| shell: bash |