@@ -146,7 +146,10 @@ jobs:
146
146
- { name: "11", java_version_numeric: 11 }
147
147
- { name: "17", java_version_numeric: 17 }
148
148
- { name: "18", java_version_numeric: 18, from: 'jdk.java.net' }
149
- - { name: "19-ea", java_version_numeric: 19, from: 'jdk.java.net' }
149
+ # We want to enable preview features when testing early-access builds of OpenJDK:
150
+ # even if we don't use these features, just enabling them can cause side effects
151
+ # and it's useful to test that.
152
+ - { name: "19-ea", java_version_numeric: 19, from: 'jdk.java.net', jvm_args: '--enable-preview' }
150
153
steps :
151
154
- uses : actions/checkout@v2
152
155
- name : Get year/month for cache key
@@ -196,7 +199,8 @@ jobs:
196
199
- name : Build and Test with Java ${{ matrix.java.name }}
197
200
run : |
198
201
./gradlew build -PshowStandardOutput -Pdocker -Ptest.jdk.version=${{ matrix.java.java_version_numeric }} \
199
- -Porg.gradle.java.installations.paths=${{ steps.mainjdk-exportpath.outputs.path }},${{ steps.testjdk-exportpath.outputs.path }}
202
+ -Porg.gradle.java.installations.paths=${{ steps.mainjdk-exportpath.outputs.path }},${{ steps.testjdk-exportpath.outputs.path }} \
203
+ ${{ matrix.java.jvm_args && '-Ptest.jdk.launcher.args=' }}${{ matrix.java.jvm_args }}
200
204
- name : Upload reports (if build failed)
201
205
uses : actions/upload-artifact@v2
202
206
if : failure()
0 commit comments