Skip to content

Commit 7c57569

Browse files
committed
Prototype artifact archival
1 parent c9066af commit 7c57569

2 files changed

Lines changed: 29 additions & 6 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,42 @@ name: Verify branch
22
on:
33
push
44
jobs:
5-
container-test-job:
5+
build:
66
runs-on: ubuntu-latest
77
container:
88
image: basilevs/ubuntu-rcptt:3.7.1
99
env:
1010
DISPLAY: :1
11-
ports:
12-
- 80
1311
volumes:
14-
- my_docker_volume:/volume_mount
15-
options: --cpus 1
12+
- artifacts:/mnt/artifacts
13+
options: --cpus 2
1614
steps:
1715
- uses: actions/checkout@v4
1816
- name: VNC
1917
run: vncserver $DISPLAY -localhost=0 -noxstartup -PasswordFile /root/.vnc/passwd
2018
- name: Build
21-
run: ./build.sh -DforceContextQualifier=`date '+%Y%M%d%H%M'` -DbuildUrl=file:///`pwd`
19+
run: ./build.sh -DforceContextQualifier=`date '+%Y%M%d%H%M'` -DbuildUrl=file://`pwd`
20+
- name: Share artifacts
21+
run: cp runner/product/target/products/org.eclipse.rcptt.runner.headless-linux.gtk.x86_64.zip repository/full/target/products/org.eclipse.rcptt.platform.product-linux.gtk.x86_64.zip /mnt/artifacts/
22+
- name: Archive update site
23+
uses: actions/upload-artifact@v4
24+
with:
25+
if-no-files-found: error
26+
name: repository
27+
path: 'org.eclipse.rcptt/repository/rcptt/target/repository/'
28+
test:
29+
runs-on: ubuntu-latest
30+
needs: build
31+
container:
32+
image: basilevs/ubuntu-rcptt:3.7.1
33+
env:
34+
DISPLAY: :1
35+
volumes:
36+
- my_docker_volume:/volume_mount
37+
options: --cpus 2
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: VNC
41+
run: vncserver $DISPLAY -localhost=0 -noxstartup -PasswordFile /root/.vnc/passwd
42+
- name: RCPTT Tests
43+
run: mvn clean verify --file rcpttTests -DexplicitRunner=/mnt/artifacts/org.eclipse.rcptt.runner.headless-linux.gtk.x86_64.zip -DrcpttPath=/mnt/artifacts/org.eclipse.rcptt.platform.product-linux.gtk.x86_64.zip

build_nodeps.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
export MAVEN_OPTS="-Xms512m -Xmx1024m"
1313

1414
OPTIONS="-Dtycho.localArtifacts=ignore $@"
15+
set -x
1516

1617
mvn clean verify -f releng/core/pom.xml $OPTIONS || exit 101
1718
mvn clean verify -f releng/runtime/pom.xml -P runtime4x $OPTIONS || exit 103

0 commit comments

Comments
 (0)