You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- name: Foxy
-
- on:
- push:
- branches: main
- pull_request:
- branches: main
-
- env:
- CARGO_TERM_COLOR: always
-
- jobs:
- test:
- strategy:
- matrix:
- rust:
- - stable
- - beta
- - nightly
-
- include:
- - os: ubuntu-20.04
- ros_distro: foxy
-
- runs-on: ${{ matrix.os }}
-
- steps:
- - uses: actions/checkout@v2
-
- - name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: ${{ matrix.rust }}
- override: true
-
- - name: Setup ROS environment
- uses: ros-tooling/setup-ros@v0.2
- with:
- required-ros-distributions: ${{ matrix.ros_distro }}
-
- - name: Run cargo check
- run: |
- source /opt/ros/${{ matrix.ros_distro }}/setup.bash
- cargo check --all-features
-
- - name: Run cargo test
- # for skip rcl-sys
- run: |
- source /opt/ros/${{ matrix.ros_distro }}/setup.bash
- cargo test -p rclrust-msg rclrust-msg-gen
- cargo test -p rclrust -- --test-threads 1
- continue-on-error: ${{ matrix.rust == 'nightly' }}
|