refactor: launch navigation (#5) #17
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: rmcs-navigation CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| RMCS_REPO: https://github.com/Alliance-Algorithm/RMCS.git | |
| RMCS_REF: main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: qzhhhi/rmcs-develop:latest | |
| options: --user 0 | |
| steps: | |
| - name: Checkout rmcs-navigation | |
| uses: actions/checkout@v5 | |
| - name: Run Lua tests | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| export PATH="/opt/cmake/bin:${PATH}" | |
| cmake -S test -B build/test | |
| ctest --test-dir build/test --output-on-failure | |
| - name: Clone RMCS workspace | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| git clone --depth 1 --branch "${RMCS_REF}" "${RMCS_REPO}" /tmp/RMCS | |
| mkdir -p /tmp/RMCS/rmcs_ws/src/skills/rmcs-navigation | |
| tar -C "${GITHUB_WORKSPACE}" --exclude=".git" -cf - . \ | |
| | tar -C /tmp/RMCS/rmcs_ws/src/skills/rmcs-navigation -xf - | |
| - name: Build rmcs-navigation with colcon | |
| shell: bash | |
| working-directory: /tmp/RMCS/rmcs_ws | |
| run: | | |
| set -euo pipefail | |
| set +u | |
| source /opt/ros/jazzy/setup.bash | |
| set -u | |
| export PATH="/opt/cmake/bin:${PATH}" | |
| colcon build --packages-up-to rmcs-navigation |