forked from UniversalRobots/Universal_Robots_Client_Library
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.17 KB
/
win-build.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
name: Windows build and tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- win-build
jobs:
win-build:
timeout-minutes: 30
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: start ursim
run: |
docker network create --subnet=192.168.56.0/24 ursim_net
docker run --rm -d --net ursim_net --ip 192.168.56.101 \
-v ${PROGRAM_FOLDER}:/ursim/programs \
-e ROBOT_MODEL=${ROBOT_MODEL} \
--name ursim \
universalrobots/ursim_${ROBOT_SERIES}:$URSIM_VERSION
env:
URSIM_VERSION: 'latest'
ROBOT_SERIES: 'e-series'
ROBOT_MODEL: 'ur5e'
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
- name: configure
#run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1
- name: build
run: cmake --build build --config Debug
- name: test
run: cd build && ctest --output-on-failure -C Debug
- name: run examples
run: ./run_examples.sh "192.168.56.101" 1