forked from RosLibRust/roslibrust
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.45 KB
/
noetic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Noetic
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
HOME: /root
ROS_PACKAGE_PATH: /opt/ros/noetic/share
# Coupled with our use of the test_log crate this should give us good CI output on failure
RUST_LOG: debug
jobs:
noetic:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
container: carter12s/roslibrust-ci-noetic:latest
timeout-minutes: 20
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Verify rust version
run: source /root/.cargo/env; rustc --version
- name: Lint
run: source /root/.cargo/env; cargo fmt --all -- --check
- name: Build Main Lib
run: source /root/.cargo/env; cargo build
# This step is required to confirm feature combinations work, the main workspace build does all features
- name: Build Proc Macro
run: source /root/.cargo/env; cargo build -p roslibrust_codegen_macro
- name: Unit Tests
run: source /root/.cargo/env; RUST_LOG=debug cargo test
- name: Start rosbridge
run: source /opt/ros/noetic/setup.bash; roslaunch rosbridge_server rosbridge_websocket.launch & disown; rosrun rosapi rosapi_node & sleep 1
- name: Integration Tests
run: source /opt/ros/noetic/setup.bash; source /root/.cargo/env; RUST_LOG=debug cargo test --features ros1_test,ros1,running_bridge,rosapi -- --test-threads 1