Skip to content

Directly run commands in ci container #81

Directly run commands in ci container

Directly run commands in ci container #81

Workflow file for this run

name: Build URCap
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SDK_VERSION:
#- 1.6.1
#- 1.7.0
#- 1.8.0
#- 1.9.0
#- 1.10.0
#- 1.11.0
#- 1.12.0
#- 1.13.0
- 1.14.0
steps:
- uses: actions/checkout@v4
- run: |
SDK_MAJOR=$(echo ${SDK_VERSION} | awk -F. '{print $1}')
SDK_MINOR=$(echo ${SDK_VERSION} | awk -F. '{print $2}')
SDK_BUILD=$(echo ${SDK_VERSION} | awk -F. '{print $3}')
sudo apt-get update && sudo apt-get install -y default-jdk maven dialog sshpass unzip curl
download_folder=$(mktemp -d)
pushd ${download_folder}
curl -o sdk-${SDK_VERSION}.zip https://s3-eu-west-1.amazonaws.com/urplus-developer-site/sdk/sdk-${SDK_VERSION}.zip
mkdir sdk
unzip -q sdk-${SDK_VERSION}.zip -d sdk
if [ "$SDK_MAJOR" -eq 1 ] && [ "$SDK_MINOR" -eq 10 ]; then
cd sdk/URCap_SDK-${SDK_VERSION}
else
cd sdk
fi
./install.sh
popd
mvn install
env:
SDK_VERSION: ${{ matrix.SDK_VERSION }}
- name: start ursim
run: |
docker run --rm -d -p 29999:29999 -p 30001-30004:30001:30004 --name ursim
#env:
#DOCKER_RUN_OPTS: --network ursim_net
#ROBOT_MODEL: ${{matrix.env.ROBOT_MODEL}}
#URSIM_VERSION: ${{matrix.env.URSIM_VERSION}}
#PROGRAM_FOLDER: ${{matrix.env.PROGRAM_FOLDER}}
- name: Install netcat
run: |
sudo apt-get update && sudo apt-get install -y netcat
- name: Wait for dashboard client
run: |
./.github/helpers/wait_for_dashboard_server.sh
- name: Run test
run: |
python3 tests/test_urcap.py
- name: Upload urcap_artifact
uses: actions/upload-artifact@v4
with:
path: target
name: external_control_sdk-${{ matrix.SDK_VERSION }}.urcap