Skip to content

Commit bdcec68

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

File tree

3 files changed

+75
-2
lines changed

3 files changed

+75
-2
lines changed

.github/workflows/verify-platform.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Checkout platform code
2222
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2323
with:
24-
path: 'platform'
24+
path: 'aggregator'
2525
submodules: 'recursive'
2626
lfs: true
2727
repository: 'eclipse-platform/eclipse.platform.releng.aggregator'
@@ -60,7 +60,7 @@ jobs:
6060
- name: Run Platform Build
6161
env:
6262
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
63-
working-directory: 'platform'
63+
working-directory: 'aggregator'
6464
run: >-
6565
mvn -U -V -e -B -ntp
6666
--global-toolchains ${{ github.workspace }}/tycho/.github/toolchains.xml

.github/workflows/verify-platform2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
--batch-mode
6969
-Pbuild-individual-bundles
7070
-Pbree-libs
71+
-DskipTests
7172
-Dmaven.test.failure.ignore=true
7273
-Dtycho.version=$(mvn help:evaluate -f ${{ github.workspace }}/tycho -Dexpression=project.version -q -DforceStdout)
7374
-T1C
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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: 'swt'
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 SWT Build
60+
env:
61+
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
62+
working-directory: 'swt'
63+
run: >-
64+
mvn
65+
--batch-mode
66+
-Pbuild-individual-bundles
67+
-Pbree-libs
68+
-DskipTests
69+
-Dmaven.test.failure.ignore=true
70+
-Dtycho.version=$(mvn help:evaluate -f ${{ github.workspace }}/tycho -Dexpression=project.version -q -DforceStdout)
71+
-T1C
72+
clean verify

0 commit comments

Comments
 (0)