Skip to content

Commit 37c5c4b

Browse files
committed
Make CI capable to run with urcap
1 parent 683e254 commit 37c5c4b

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,30 @@ jobs:
1010
build:
1111
timeout-minutes: 30
1212
runs-on: ubuntu-latest
13-
name: build (${{matrix.env.URSIM_VERSION}}-${{matrix.env.ROBOT_MODEL}})
13+
name: build (${{matrix.URSIM_VERSION}}-${{matrix.ROBOT_MODEL}})
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
env:
18-
- DOCKER_RUN_OPTS: --network ursim_net
19-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
20-
CTEST_OUTPUT_ON_FAILURE: 1
21-
ROBOT_MODEL: 'ur5'
22-
URSIM_VERSION: '3.14.3'
23-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/cb3'
24-
- DOCKER_RUN_OPTS: --network ursim_net
25-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
26-
CTEST_OUTPUT_ON_FAILURE: 1
27-
ROBOT_MODEL: 'ur5e'
28-
URSIM_VERSION: '5.9.4'
29-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
30-
- DOCKER_RUN_OPTS: --network ursim_net
31-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
32-
CTEST_OUTPUT_ON_FAILURE: 1
33-
ROBOT_MODEL: 'ur20'
34-
URSIM_VERSION: 'latest'
35-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
17+
- ROBOT_MODEL: 'ur5'
18+
URSIM_VERSION: '3.14.3'
19+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/cb3'
20+
- ROBOT_MODEL: 'ur5e'
21+
URSIM_VERSION: '5.9.4'
22+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
23+
- ROBOT_MODEL: 'ur20'
24+
URSIM_VERSION: 'latest'
25+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
3626

3727
steps:
3828
- uses: actions/checkout@v4
3929
- name: start ursim
4030
run: |
4131
scripts/start_ursim.sh -m $ROBOT_MODEL -v $URSIM_VERSION -p $PROGRAM_FOLDER -d
42-
env: ${{matrix.env}}
32+
env:
33+
DOCKER_RUN_OPTS: --network ursim_net
34+
ROBOT_MODEL: ${{matrix.ROBOT_MODEL}}
35+
URSIM_VERSION: ${{matrix.URSIM_VERSION}}
36+
PROGRAM_FOLDER: ${{matrix.PROGRAM_FOLDER}}
4337
- name: configure
4438
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1 -DWITH_ASAN=ON
4539
env:
@@ -82,15 +76,15 @@ jobs:
8276
uses: actions/upload-artifact@v4
8377
if: always()
8478
with:
85-
name: ${{matrix.env.ROBOT_MODEL}}_${{matrix.env.URSIM_VERSION}}_URSim_Logs
79+
name: ${{matrix.ROBOT_MODEL}}_${{matrix.URSIM_VERSION}}_URSim_Logs
8680
path: ursim_logs
8781
if-no-files-found: error
8882
retention-days: 10
8983
- name: Upload test artifacts
9084
uses: actions/upload-artifact@v4
9185
if: always()
9286
with:
93-
name: ${{matrix.env.ROBOT_MODEL}}_${{matrix.env.URSIM_VERSION}}_test_artifacts
87+
name: ${{matrix.ROBOT_MODEL}}_${{matrix.URSIM_VERSION}}_test_artifacts
9488
path: test_artifacts
9589
if-no-files-found: error
9690
retention-days: 10

scripts/start_ursim.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ help()
5151
If not specified, will fallback to ${PERSISTENT_BASE}/${ROBOT_SERIES}/urcaps"
5252
echo " -n Name of the docker container. Defaults to '$CONTAINER_NAME'"
5353
echo " -i IP address the container should get. Defaults to $IP_ADDRESS"
54-
echo " -d Detached mode - start in backgound"
54+
echo " -d Detached mode - start in background"
5555
echo " -f Specify port forwarding to use. Defaults to '$PORT_FORWARDING'. Set to empty string to disable port forwarding."
5656
echo " -h Print this Help."
5757
echo
543 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)