Fix start ursim #743
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ROS industrial ci | |
on: [push, pull_request] | |
jobs: | |
industrial_ci: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ROS_DISTRO: | |
- {NAME: noetic, DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS_Driver/master/.noetic.rosinstall"} | |
- {NAME: rolling, DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main"} | |
ROS_REPO: | |
- main | |
- testing | |
URSIM: | |
- {VERSION: '5.9.4', MODEL: 'ur5e', PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'} | |
- {VERSION: '3.14.3', MODEL: 'ur5', PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/cb3'} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: docker network create --subnet=192.168.56.0/24 ursim_net | |
- uses: 'ros-industrial/industrial_ci@master' | |
env: | |
IMMEDIATE_TEST_OUTPUT: true | |
DOWNSTREAM_CMAKE_ARGS: -DUR_ROBOT_DRIVER_BUILD_INTEGRATION_TESTS=ON | |
ADDITIONAL_DEBS: docker.io netcat-openbsd # Needed for integration tests | |
DOWNSTREAM_WORKSPACE: ${{matrix.ROS_DISTRO.DOWNSTREAM_WORKSPACE}} | |
ROS_DISTRO: ${{matrix.ROS_DISTRO.NAME}} | |
ROS_REPO: ${{matrix.ROS_REPO}} | |
- name: Generate URSim log files | |
if: always() | |
run: | | |
nc -q 1 192.168.56.101 29999 <<END | |
saveLog | |
END | |
mkdir -p ursim_logs | |
docker cp ursim:/ursim/URControl.log ursim_logs/URControl.log | |
docker cp ursim:/ursim/polyscope.log ursim_logs/polyscope.log | |
docker cp ursim:/ursim/log_history.txt ursim_logs/log_history.txt | |
- name: Copy flight reports | |
if: failure() | |
run: | | |
mkdir -p ursim_logs/flightreports | |
docker cp ursim:/ursim/flightreports/. ursim_logs/flightreports/ | |
- name: Upload logfiles | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: ${{matrix.ROS_DISTRO.name}}_${{matrix.URSIM.VERSION}}_URSim_Logs | |
path: ursim_logs | |
if-no-files-found: error | |
retention-days: 10 |