More specific docker stuff #20
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: 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 |