Skip to content

Commit 44a6fac

Browse files
authored
[CI] Update CI to a working state (#14)
* Update CI to a working state * Update compiler version
1 parent 7c67289 commit 44a6fac

File tree

5 files changed

+33
-54
lines changed

5 files changed

+33
-54
lines changed

.github/actions/build_urcap/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/actions/build_urcap/action.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/actions/build_urcap/entrypoint.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/compile.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,46 @@
1+
---
12
name: Build URCap
2-
on: [push, pull_request]
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
schedule:
10+
- cron: '48 15 21 * 0' # Build once a month to make sure the workflow is functional
311

412
jobs:
513
build:
614
runs-on: ubuntu-latest
715
strategy:
816
fail-fast: false
917
matrix:
10-
SDK_VERSION: [1.10.0, 1.11.0, 1.12.0]
18+
SDK_VERSION: [1.11.0, 1.12.0, 1.13.0, 1.14.0]
1119

1220
steps:
13-
- uses: actions/checkout@v1
14-
- uses: ./.github/actions/build_urcap
21+
- uses: actions/checkout@v4
22+
- run: |
23+
SDK_MAJOR=$(echo ${SDK_VERSION} | awk -F. '{print $1}')
24+
SDK_MINOR=$(echo ${SDK_VERSION} | awk -F. '{print $2}')
25+
SDK_BUILD=$(echo ${SDK_VERSION} | awk -F. '{print $3}')
26+
sudo apt-get update && sudo apt-get install -y openjdk-8-jdk maven dialog sshpass unzip curl
27+
download_folder=$(mktemp -d)
28+
pushd ${download_folder}
29+
curl -o sdk-${SDK_VERSION}.zip https://s3-eu-west-1.amazonaws.com/urplus-developer-site/sdk/sdk-${SDK_VERSION}.zip
30+
mkdir sdk
31+
unzip -q sdk-${SDK_VERSION}.zip -d sdk
32+
if [ "$SDK_MAJOR" -eq 1 ] && [ "$SDK_MINOR" -eq 10 ]; then
33+
cd sdk/URCap_SDK-${SDK_VERSION}
34+
else
35+
cd sdk
36+
fi
37+
./install.sh
38+
popd
39+
mvn install
1540
env:
1641
SDK_VERSION: ${{ matrix.SDK_VERSION }}
1742
- name: Upload urcap_artifact
18-
uses: actions/upload-artifact@v1
43+
uses: actions/upload-artifact@v4
1944
with:
2045
path: target
21-
name: ROS_as_a_Service_sdk-${{ matrix.SDK_VERSION }}.urcap
46+
name: tool_comm_forwarder-${{ matrix.SDK_VERSION }}.urcap

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<artifactId>maven-compiler-plugin</artifactId>
5353
<version>3.6.0</version>
5454
<configuration>
55-
<source>1.6</source>
56-
<target>1.6</target>
55+
<source>1.8</source>
56+
<target>1.8</target>
5757
</configuration>
5858
</plugin>
5959
<plugin>

0 commit comments

Comments
 (0)