Create rust_and_ros2.yml

Initial test of testing r2r using github actions
This commit is contained in:
Kristofer Bengtsson 2021-05-26 14:57:08 +02:00 committed by GitHub
parent 6b26328d65
commit a904b448af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

25
.github/workflows/rust_and_ros2.yml vendored Normal file
View File

@ -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