@@ -41,44 +41,10 @@ jobs:
41
41
build_jdk_11 :
42
42
name : Build JDK 11
43
43
needs : [prerequisites]
44
- runs-on : ubuntu-latest
45
- if : needs.prerequisites.outputs.runjobs
46
- steps :
47
- - uses : actions/checkout@v2
48
- - name : Set up JDK 11
49
- uses : actions/setup-java@v1
50
- with :
51
- java-version : ' 11'
52
- - name : Setup gradle user name
53
- run : |
54
- mkdir -p ~/.gradle
55
- echo 'systemProp.user.name=spring-builds' >> ~/.gradle/gradle.properties
56
- - name : Cache Gradle packages
57
- uses : actions/cache@v2
58
- with :
59
- path : ~/.gradle/caches
60
- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
61
- - name : Build with Gradle
62
- run : |
63
- export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
64
- export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
65
- export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
66
- ./gradlew clean build --continue -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
67
- - name : Track error step
68
- uses : spring-projects/track-build-errors-action@v1
69
- if : ${{ failure() }}
70
- with :
71
- job-name : ${{ github.job }}
72
- - name : Export errors file
73
- uses : actions/upload-artifact@v2
74
- if : ${{ failure() }}
75
- with :
76
- name : errors
77
- path : job-${{ github.job }}.txt
78
- build_windows :
79
- name : Build Windows
80
- needs : [prerequisites]
81
- runs-on : windows-latest
44
+ strategy :
45
+ matrix :
46
+ os : [ubuntu-latest, windows-latest]
47
+ runs-on : ${{ matrix.os }}
82
48
if : needs.prerequisites.outputs.runjobs
83
49
steps :
84
50
- uses : actions/checkout@v2
@@ -190,7 +156,7 @@ jobs:
190
156
path : job-${{ github.job }}.txt
191
157
deploy_artifacts :
192
158
name : Deploy Artifacts
193
- needs : [build_jdk_11, build_windows, snapshot_tests, sonar_analysis]
159
+ needs : [build_jdk_11, snapshot_tests, sonar_analysis]
194
160
runs-on : ubuntu-latest
195
161
steps :
196
162
- uses : actions/checkout@v2
@@ -228,7 +194,7 @@ jobs:
228
194
path : job-${{ github.job }}.txt
229
195
deploy_docs :
230
196
name : Deploy Docs
231
- needs : [build_jdk_11, build_windows, snapshot_tests, sonar_analysis]
197
+ needs : [build_jdk_11, snapshot_tests, sonar_analysis]
232
198
runs-on : ubuntu-latest
233
199
steps :
234
200
- uses : actions/checkout@v2
@@ -263,7 +229,7 @@ jobs:
263
229
path : job-${{ github.job }}.txt
264
230
deploy_schema :
265
231
name : Deploy Schema
266
- needs : [build_jdk_11, build_windows, snapshot_tests, sonar_analysis]
232
+ needs : [build_jdk_11, snapshot_tests, sonar_analysis]
267
233
runs-on : ubuntu-latest
268
234
steps :
269
235
- uses : actions/checkout@v2
@@ -298,7 +264,7 @@ jobs:
298
264
path : job-${{ github.job }}.txt
299
265
notify_result :
300
266
name : Check for failures
301
- needs : [build_jdk_11, build_windows, snapshot_tests, sonar_analysis, deploy_artifacts, deploy_docs, deploy_schema]
267
+ needs : [build_jdk_11, snapshot_tests, sonar_analysis, deploy_artifacts, deploy_docs, deploy_schema]
302
268
if : always()
303
269
runs-on : ubuntu-latest
304
270
steps :
0 commit comments