Skip to content

Commit 4230077

Browse files
committed
Add SWT verification builds
1 parent 6c80860 commit 4230077

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This workflow will build a "Eclipse Platform Individual Bundles" using the eclipse.platform repository as it contains the largest set of inter-related bundles
2+
# For more information see: https://github.com/eclipse-platform/eclipse.platform
3+
4+
name: Verify Eclipse Platform SWT Build
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
on:
9+
pull_request:
10+
branches:
11+
- 'main'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout tycho code
18+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19+
with:
20+
path: 'tycho'
21+
- name: Checkout platform code
22+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23+
with:
24+
path: 'platform'
25+
submodules: 'recursive'
26+
lfs: true
27+
repository: 'eclipse-platform/eclipse.platform.swt'
28+
fetch-depth: 0
29+
- name: Set up Java
30+
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
31+
with:
32+
java-version: |
33+
8
34+
11
35+
21
36+
17
37+
distribution: 'temurin'
38+
- name: Cache local Maven repository
39+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
40+
with:
41+
path: ~/.m2/repository
42+
key: ${{ runner.os }}-maven-verify-platform-swt-${{ hashFiles('**/pom.xml', '**/*.target') }}
43+
restore-keys: |
44+
${{ runner.os }}-maven-verify-platform-swt-
45+
- name: Set up Maven
46+
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
47+
with:
48+
maven-version: 3.9.9
49+
- name: Build Tycho
50+
env:
51+
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
52+
working-directory: 'tycho'
53+
run: >-
54+
mvn -U -V -e -B -ntp
55+
-DskipTests
56+
--file pom.xml
57+
-T1C
58+
clean install
59+
- name: Run Platform Build
60+
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # v1.6
61+
env:
62+
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
63+
with:
64+
working-directory: 'platform'
65+
run: >-
66+
mvn
67+
--batch-mode
68+
-Pbuild-individual-bundles
69+
-Pbree-libs
70+
-Dmaven.test.failure.ignore=true
71+
-Dtycho.version=$(mvn help:evaluate -f ${{ github.workspace }}/tycho -Dexpression=project.version -q -DforceStdout)
72+
-T1C
73+
clean verify

0 commit comments

Comments
 (0)