This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
Update README.md #96
This file contains 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: CI | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_LOG: trace | |
jobs: | |
build_and_examples: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.platform }} | |
env: | |
QT_QPA_PLATFORM: offscreen | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r7kamura/[email protected] | |
- run: cargo --version --verbose | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: humble | |
- run: 'source /opt/ros/humble/setup.bash && echo AMENT_PREFIX_PATH=${AMENT_PREFIX_PATH} >> "$GITHUB_ENV"' | |
- name: "Build examples" | |
timeout-minutes: 30 | |
run: cargo build --examples | |
- name: "Rust standalone" | |
timeout-minutes: 30 | |
run: | | |
source /opt/ros/humble/setup.bash && ros2 run turtlesim turtlesim_node & | |
cargo run --example random_turtle --features="ros2-examples" | |
- name: "Rust Dataflow example" | |
timeout-minutes: 30 | |
run: | | |
source /opt/ros/humble/setup.bash && ros2 run turtlesim turtlesim_node & | |
cargo build -p rust-ros2-dataflow-example-node --features ros2 | |
cargo run --example rust-ros2-dataflow --features="ros2-examples" | |
- name: "Python Dataflow example" | |
timeout-minutes: 30 | |
run: | | |
source /opt/ros/humble/setup.bash && ros2 run turtlesim turtlesim_node & | |
pip3 install -r ./examples/python-ros2-dataflow/requirements.txt | |
maturin build -m python/Cargo.toml | |
pip install target/wheels/*.whl | |
cargo run --example python-ros2-dataflow --features="ros2-examples" | |
- name: "Python Standalone" | |
timeout-minutes: 30 | |
run: | | |
source /opt/ros/humble/setup.bash && ros2 run turtlesim turtlesim_node & | |
python3 -m venv examples/.env && | |
source examples/.env/bin/activate && | |
python3 examples/python-standalone-bridge/random_turtle.py | |