Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/actions/build_urcap/Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions .github/actions/build_urcap/action.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/actions/build_urcap/entrypoint.sh

This file was deleted.

37 changes: 31 additions & 6 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
---
name: Build URCap
on: [push, pull_request]
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
schedule:
- cron: '48 15 21 * 0' # Build once a month to make sure the workflow is functional

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SDK_VERSION: [1.10.0, 1.11.0, 1.12.0]
SDK_VERSION: [1.11.0, 1.12.0, 1.13.0, 1.14.0]

steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/build_urcap
- 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 openjdk-8-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: Upload urcap_artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
path: target
name: ROS_as_a_Service_sdk-${{ matrix.SDK_VERSION }}.urcap
name: tool_comm_forwarder-${{ matrix.SDK_VERSION }}.urcap
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
Expand Down