From a904b448afba5a34a2e5259eccde5ef9321b014c Mon Sep 17 00:00:00 2001 From: Kristofer Bengtsson Date: Wed, 26 May 2021 14:57:08 +0200 Subject: [PATCH] Create rust_and_ros2.yml Initial test of testing r2r using github actions --- .github/workflows/rust_and_ros2.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/rust_and_ros2.yml diff --git a/.github/workflows/rust_and_ros2.yml b/.github/workflows/rust_and_ros2.yml new file mode 100644 index 0000000..7488dad --- /dev/null +++ b/.github/workflows/rust_and_ros2.yml @@ -0,0 +1,25 @@ +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: ros-tooling/setup-ros@v0.1 + with: + required-ros-distributions: galactic + - uses: actions/checkout@v2 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose