Skip to content

Commit bd170e2

Browse files
committed
[#1653] add CI reference job with IBM Semeru Runtimes
1 parent b8803c3 commit bd170e2

File tree

1 file changed

+59
-3
lines changed

1 file changed

+59
-3
lines changed

.github/workflows/maven.yml

+59-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,59 @@ on:
1212
env:
1313
# server-config-props-it fix
1414
MAVEN_HOME: $(which mvn)
15+
# reference build
16+
REF_DISTRIBUTION: 'semeru'
17+
REF_JAVA: 8
18+
REF_RUNTIME: 'wlp'
19+
REF_RUNTIME_VERSION: '22.0.0.6'
1520

1621
jobs:
17-
# UNIX BUILDS
22+
# single reference build before starting matrix build
23+
linux-8-semeru:
24+
runs-on: ubuntu-latest
25+
strategy:
26+
fail-fast: true
27+
steps:
28+
# Checkout repos
29+
- name: Checkout ci.maven
30+
uses: actions/checkout@v3
31+
- name: Setup Java 8
32+
uses: actions/setup-java@v3
33+
with:
34+
distribution: ${{ env.REF_DISTRIBUTION }}
35+
java-version: ${{ env.REF_JAVA }}
36+
cache: 'maven'
37+
- name: Checkout ci.common
38+
uses: actions/checkout@v3
39+
with:
40+
repository: OpenLiberty/ci.common
41+
path: ci.common
42+
- name: Checkout ci.ant
43+
uses: actions/checkout@v3
44+
with:
45+
repository: OpenLiberty/ci.ant
46+
path: ci.ant
47+
- name: Cache maven packages
48+
uses: actions/cache@v3
49+
with:
50+
path: ~/.m2
51+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
52+
restore-keys: ${{ runner.os }}-m2
53+
# Install dependencies
54+
- name: Install ci.ant and ci.common
55+
run: |
56+
cd ./ci.ant
57+
mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
58+
cd ../ci.common
59+
mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
60+
cd ..
61+
# Run tests
62+
- name: Run tests
63+
run: ./mvnw verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogs"=true -Druntime=$REF_RUNTIME -DruntimeVersion="$REF_RUNTIME_VERSION"
64+
65+
# UNIX BUILDS
1866
build-unix:
67+
needs: linux-8-semeru
1968
runs-on: ubuntu-latest
2069
strategy:
2170
fail-fast: false
@@ -24,7 +73,12 @@ jobs:
2473
RUNTIME: [ol, wlp]
2574
RUNTIME_VERSION: [22.0.0.6, 22.0.0.9]
2675
java: [17, 11, 8]
76+
distribution: [ 'temurin', 'semeru' ]
2777
exclude:
78+
- java: $REF_JAVA
79+
distribution: $REF_DISTRIBUTION
80+
RUNTIME: $REF_RUNTIME
81+
RUNTIME_VERSION: $REF_RUNTIME_VERSION
2882
- java: 8
2983
RUNTIME_VERSION: 22.0.0.6
3084
- java: 17
@@ -37,7 +91,7 @@ jobs:
3791
- name: Setup Java ${{ matrix.java }}
3892
uses: actions/setup-java@v3
3993
with:
40-
distribution: 'temurin'
94+
distribution: ${{ matrix.distribution }}
4195
java-version: ${{ matrix.java }}
4296
cache: 'maven'
4397
- name: Checkout ci.common
@@ -70,6 +124,7 @@ jobs:
70124

71125
# WINDOWS BUILD
72126
build-windows:
127+
needs: linux-8-semeru
73128
runs-on: windows-latest
74129
strategy:
75130
fail-fast: false
@@ -78,6 +133,7 @@ jobs:
78133
RUNTIME: [ol, wlp]
79134
RUNTIME_VERSION: [22.0.0.6, 22.0.0.9]
80135
java: [17, 11, 8]
136+
distribution: ['temurin', 'semeru']
81137
exclude:
82138
- java: 8
83139
RUNTIME_VERSION: 22.0.0.6
@@ -91,7 +147,7 @@ jobs:
91147
- name: Setup Java ${{ matrix.java }}
92148
uses: actions/setup-java@v3
93149
with:
94-
distribution: 'temurin'
150+
distribution: ${{ matrix.distribution }}
95151
java-version: ${{ matrix.java }}
96152
cache: 'maven'
97153
# Move and cloning to C: drive for Windows for more disk space

0 commit comments

Comments
 (0)