Skip to content

Commit eecd657

Browse files
committed
Fix workflow file
1 parent 37c5c4b commit eecd657

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ jobs:
1010
build:
1111
timeout-minutes: 30
1212
runs-on: ubuntu-latest
13-
name: build (${{matrix.URSIM_VERSION}}-${{matrix.ROBOT_MODEL}})
13+
name: build (${{matrix.env.URSIM_VERSION}}-${{matrix.env.ROBOT_MODEL}})
1414
strategy:
1515
fail-fast: false
1616
matrix:
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'
17+
env:
18+
- ROBOT_MODEL: 'ur5'
19+
URSIM_VERSION: '3.14.3'
20+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/cb3'
21+
- ROBOT_MODEL: 'ur5e'
22+
URSIM_VERSION: '5.9.4'
23+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
24+
- ROBOT_MODEL: 'ur20'
25+
URSIM_VERSION: 'latest'
26+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
27+
HEADLESS: [true, false]
2628

2729
steps:
2830
- uses: actions/checkout@v4
@@ -31,9 +33,10 @@ jobs:
3133
scripts/start_ursim.sh -m $ROBOT_MODEL -v $URSIM_VERSION -p $PROGRAM_FOLDER -d
3234
env:
3335
DOCKER_RUN_OPTS: --network ursim_net
34-
ROBOT_MODEL: ${{matrix.ROBOT_MODEL}}
35-
URSIM_VERSION: ${{matrix.URSIM_VERSION}}
36-
PROGRAM_FOLDER: ${{matrix.PROGRAM_FOLDER}}
36+
ROBOT_MODEL: ${{matrix.env.ROBOT_MODEL}}
37+
URSIM_VERSION: ${{matrix.env.URSIM_VERSION}}
38+
PROGRAM_FOLDER: ${{matrix.env.PROGRAM_FOLDER}}
39+
HEADLESS_MODE: ${{matrix.HEADLESS}}
3740
- name: configure
3841
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1 -DWITH_ASAN=ON
3942
env:
@@ -76,15 +79,15 @@ jobs:
7679
uses: actions/upload-artifact@v4
7780
if: always()
7881
with:
79-
name: ${{matrix.ROBOT_MODEL}}_${{matrix.URSIM_VERSION}}_URSim_Logs
82+
name: ${{matrix.env.ROBOT_MODEL}}_${{matrix.env.URSIM_VERSION}}_URSim_Logs
8083
path: ursim_logs
8184
if-no-files-found: error
8285
retention-days: 10
8386
- name: Upload test artifacts
8487
uses: actions/upload-artifact@v4
8588
if: always()
8689
with:
87-
name: ${{matrix.ROBOT_MODEL}}_${{matrix.URSIM_VERSION}}_test_artifacts
90+
name: ${{matrix.env.ROBOT_MODEL}}_${{matrix.env.URSIM_VERSION}}_test_artifacts
8891
path: test_artifacts
8992
if-no-files-found: error
9093
retention-days: 10

0 commit comments

Comments
 (0)