forked from wildfly/wildfly
-
Notifications
You must be signed in to change notification settings - Fork 0
110 lines (100 loc) · 2.88 KB
/
jdk-jre-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: WildFly JRE build
on:
push:
branches:
- main
paths-ignore:
- ".mvn/**"
- "docs/**"
- ".github/workflows/build-manual.yml"
- ".github/workflows/shared-wildfly-build.yml"
- '.gitattributes'
- '.gitignore'
- '.gitleaks.toml'
- 'build.bat'
- 'build.sh'
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "integration-tests.bat"
- "integration-tests.sh"
- "LICENSE.txt"
- "mvnw"
- "mvnw.cmd"
- "README.md"
- "SECURITY.md"
- "**/README.md"
- "**/README.adoc"
pull_request:
branches:
- '**'
paths-ignore:
- ".mvn/**"
- "docs/**"
- ".github/workflows/build-manual.yml"
- ".github/workflows/shared-wildfly-build.yml"
- '.gitattributes'
- '.gitignore'
- '.gitleaks.toml'
- 'build.bat'
- 'build.sh'
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "integration-tests.bat"
- "integration-tests.sh"
- "LICENSE.txt"
- "mvnw"
- "mvnw.cmd"
- "README.md"
- "SECURITY.md"
- "**/README.md"
- "**/README.adoc"
# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
wildfly-jre-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: ['11', '17', '21']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JRE ${{ matrix.java }} for building
id: setup-java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
java-package: 'jre'
- name: Set the JRE Home
id: jre-home
run: |
echo "JRE_HOME=$JAVA_HOME" >> "$GITHUB_OUTPUT"
- name: Setup JDK ${{ matrix.java }} for building
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build and verify WildFly with JRE ${{ matrix.java }}
run: |
mvn -B clean install -DskipTests -Denforcer.skip=true -Dcheckstyle.skip=true
cd testsuite
echo "Running: mvn -B verify -Dcontainer.java.home=${{ steps.jre-home.outputs.JRE_HOME }} -fae"
mvn -B verify -DnoCompile -Dcontainer.java.home=${{ steps.jre-home.outputs.JRE_HOME }} -fae
- name: Upload Surefire Reports on Failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: surefire-reports-${{ matrix.java }}
path: '**/surefire-reports/'
- name: Upload Server Logs on Failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: server-logs-${{ matrix.java }}
path: '**/server.log'