Merge remote-tracking branch 'origin/master' into futures

# Conflicts:
#	examples/subscriber_with_thread.rs
This commit is contained in:
Kristofer Bengtsson 2021-07-06 09:33:36 +02:00
commit 36800a3c84
5 changed files with 61 additions and 0 deletions

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

@ -0,0 +1,35 @@
name: Rust
on:
push:
branches: [ github_actions ]
pull_request:
branches: [ github_actions ]
env:
CARGO_TERM_COLOR: always
jobs:
testing_rolling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker build . --file ./tests/Dockerfile --tag r2r_test
- run: docker run r2r_test
testing_foxy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker build . --file ./tests/Dockerfile_foxy --tag r2r_test
- run: docker run r2r_test
testing_galactic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker build . --file ./tests/Dockerfile_galactic --tag r2r_test
- run: docker run r2r_test

6
tests/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM kristoferb/spdesktop_ros2:rolling
COPY . /r2r
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN chmod +x /r2r/tests/test.sh
ENTRYPOINT [ "/r2r/tests/test.sh" ]

6
tests/Dockerfile_foxy Normal file
View File

@ -0,0 +1,6 @@
FROM kristoferb/spdesktop_ros2:foxy
COPY . /r2r
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN chmod +x /r2r/tests/test.sh
ENTRYPOINT [ "/r2r/tests/test.sh" ]

View File

@ -0,0 +1,6 @@
FROM kristoferb/spdesktop_ros2:galactic
COPY . /r2r
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN chmod +x /r2r/tests/test.sh
ENTRYPOINT [ "/r2r/tests/test.sh" ]

8
tests/test.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
source /opt/ros/rolling/setup.bash
source /opt/ros/foxy/setup.bash
source /opt/ros/galactic/setup.bash
cd /r2r/
/root/.cargo/bin/cargo test