chore: update submodule configurations and enhance issue templates #1
Workflow file for this run
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
| # Robonix CI — build and test per rust/README.md | |
| # Prerequisites: ROS2 Humble, Rust, Python 3.10 (for full build) | |
| name: CI | |
| on: | |
| push: | |
| branches: [main, dev/**] | |
| pull_request: | |
| branches: [main, dev/**] | |
| env: | |
| RUST_DIR: rust | |
| jobs: | |
| # Fast feedback: check and build Rust CLI + Core (no ROS2) | |
| rust-check: | |
| name: Rust check & build | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Check formatting | |
| run: | | |
| cd ${{ env.RUST_DIR }}/robonix-cli && cargo fmt -- --check | |
| cd ${{ env.RUST_DIR }}/robonix-core && cargo fmt -- --check | |
| - name: Cargo check | |
| run: cd ${{ env.RUST_DIR }} && make check | |
| - name: Build CLI and Core | |
| run: cd ${{ env.RUST_DIR }} && make build | |
| # Full build: SDK (ROS2) + CLI + Core | |
| build-sdk: | |
| name: Build SDK + Rust | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ROS2 Humble | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y locales | |
| sudo locale-gen en_US en_US.UTF-8 | |
| sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| sudo apt-get install -y curl gnupg2 lsb-release | |
| sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null | |
| sudo apt-get update | |
| sudo apt-get install -y ros-humble-ros-base python3-pip | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Build robonix-sdk and Rust | |
| run: | | |
| source /opt/ros/humble/setup.bash | |
| cd ${{ env.RUST_DIR }} | |
| make build-sdk | |
| make build | |
| env: | |
| PYTHON3_EXECUTABLE: /usr/bin/python3 |