This repository was archived by the owner on Sep 21, 2026. It is now read-only.
Create route #33
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
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: self-hosted | |
| env: | |
| BUILD_TYPE: Release | |
| RUN_TESTS: 'true' | |
| steps: | |
| # Checkout this repo | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: WE-Autopilot/ap1 | |
| ref: main | |
| - name: Source ROS 2 environment | |
| run: | | |
| source /opt/ros/jazzy/setup.bash | |
| echo "ROS 2 environment sourced" | |
| - name: Import dependencies | |
| run: | | |
| mkdir -p src | |
| vcs import < .repos | |
| - name: Build planning | |
| run: | | |
| source /opt/ros/jazzy/setup.bash | |
| colcon build \ | |
| --packages-up-to ap1_planning \ | |
| --symlink-install \ | |
| --cmake-args -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ | |
| - name: Run tests | |
| if: ${{ env.RUN_TESTS == 'true' }} | |
| run: | | |
| source /opt/ros/jazzy/setup.bash | |
| source install/setup.bash | |
| colcon test --packages-select ap1_planning | |
| colcon test-result --verbose |