From e90dfceebae12939f46fe160e89d0009ef728907 Mon Sep 17 00:00:00 2001 From: Lucas Walter Date: Sun, 29 Sep 2024 09:01:26 -0700 Subject: [PATCH] t# This is a combination of 2 commits. run cargo fmt and clippy in github action --- .github/workflows/ubuntu_22_04.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ubuntu_22_04.yml b/.github/workflows/ubuntu_22_04.yml index 6bfdbaf..be273fb 100644 --- a/.github/workflows/ubuntu_22_04.yml +++ b/.github/workflows/ubuntu_22_04.yml @@ -49,11 +49,24 @@ jobs: sudo apt install -yqq libros-rosgraph-msgs-dev python3-rosgraph-msgs ros-rosgraph-msgs sudo apt install -yqq librust-openssl-dev rospack find geometry_msgs + echo "ROS_PACKAGE_PATH=`rospack find actionlib_msgs`:`rospack find std_msgs`:`rospack find sensor_msgs`:`rospack find geometry_msgs`:`rospack find rosgraph_msgs`:`rospack find std_srvs`:`rospack find tf2_msgs`" > $GITHUB_ENV + + - run: echo $ROS_PACKAGE_PATH + + - run: echo "PATH=$PATH:$HOME/.cargo/bin" >> $GITHUB_ENV + + - run: | + cd mcap_tools/mcap_tools + cargo fmt --check + + - run: | + cd mcap_tools/mcap_tools + cargo clippy - name: run: | # TODO(lucasw) build docs, and run tests cd mcap_tools/mcap_tools - ROS_PACKAGE_PATH=`rospack find actionlib_msgs`:`rospack find std_msgs`:`rospack find sensor_msgs`:`rospack find geometry_msgs`:`rospack find rosgraph_msgs`:`rospack find std_srvs`:`rospack find tf2_msgs` cargo build --release - target/release/mcap_record --version - target/release/mcap_record --help + cargo install --path . + mcap_record --version + mcap_record --help