forked from wildfly/wildfly
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (74 loc) · 2.24 KB
/
build-manual.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
name: Manual Build and Test
on:
workflow_dispatch:
inputs:
os:
description: 'OS'
required: false
default: 'ubuntu-latest'
type: choice
options:
- ubuntu-latest
- windows-latest
jdk-distribution:
description: 'JDK Distribution'
required: false
default: 'temurin'
type: choice
options:
- temurin
- semeru
- microsoft
- oracle
- zulu
- corretto
- liberica
jdk-version:
description: 'JDK Version'
required: true
type: string
args:
description: 'Arguments like -Dquickly | -DskipTests | -DallTests'
required: false
default: '-Dquickly'
type: string
timeout:
description: 'Job Timeout Minutes'
required: false
default: 120
type: number
# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
name: Build and Test
runs-on: ${{ inputs.os }}
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ inputs.jdk-distribution }} 17 to build for JDK 11 test
if: inputs.jdk-version == 11
uses: actions/setup-java@v4
with:
distribution: ${{ inputs.jdk-distribution }}
java-version: 17
cache: 'maven'
- name: Build with Maven and JDK 17 for JDK 11 Tests
if: inputs.jdk-version == 11
run: mvn -U -B -ntp clean install ${{ inputs.args }} -DskipTests
- name: Set up JDK ${{ inputs.jdk-distribution }} ${{ inputs.jdk-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ inputs.jdk-distribution }}
java-version: ${{ inputs.jdk-version }}
cache: 'maven'
- name: Test with Maven and JDK 11 with -DnoCompile
if: inputs.jdk-version == 11
run: mvn -U -B -ntp test -DnoCompile ${{ inputs.args }} -rf testsuite
- name: Build and test with Maven
if: inputs.jdk-version != 11
run: mvn -U -B -ntp clean install ${{ inputs.args }}