Clean imports, comments, msg packaging #24
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: | |
| - 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 control | |
| run: | | |
| source /opt/ros/jazzy/setup.bash | |
| colcon build \ | |
| --packages-up-to ap1_control \ | |
| --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_control | |
| colcon test-result --verbose |