21
21
branches :
22
22
- master
23
23
workflow_dispatch :
24
- permissions :
25
- pull-requests : write
26
24
jobs :
27
25
license-check :
28
26
runs-on : ' ubuntu-latest'
35
33
if : github.repository == 'linghengqian/hive-server2-jdbc-driver'
36
34
strategy :
37
35
matrix :
38
- java : [ '17', '24 ' ]
36
+ java : [ '17', '25 ' ]
39
37
os : [ 'ubuntu-latest', 'windows-2025' ]
40
38
runs-on : ${{ matrix.os }}
41
39
steps :
63
61
if : github.repository == 'linghengqian/hive-server2-jdbc-driver'
64
62
strategy :
65
63
matrix :
66
- java : [ '22.0.2', '24.0.2 ' ]
64
+ java : [ '22.0.2', '25 ' ]
67
65
os : [ 'ubuntu-latest' ]
68
66
runs-on : ${{ matrix.os }}
69
67
steps :
@@ -81,22 +79,21 @@ jobs:
81
79
- name : NativeTest on GraalVM CE For JDK 22.0.2 on ${{ matrix.os }}
82
80
if : matrix.java == '22.0.2'
83
81
run : ./mvnw -PnativeTestInCustom clean test
84
- - name : NativeTest on GraalVM CE For JDK 24.0.2 on ${{ matrix.os }}
85
- if : matrix.java == '24.0.2 '
82
+ - name : NativeTest on GraalVM CE For JDK 25 on ${{ matrix.os }}
83
+ if : matrix.java == '25 '
86
84
run : ./mvnw -PnativeTestInJava23+ clean test
87
- # todo wait for GraalVM CE For JDK 25 release
88
- native-test-ci-on-oracle-graalvm :
89
- name : NativeTest - Oracle GraalVM for JDK ${{ matrix.java }} on ${{ matrix.os }}
85
+ native-test-ci-on-mandrel :
86
+ name : NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
90
87
if : github.repository == 'linghengqian/hive-server2-jdbc-driver'
91
88
strategy :
92
89
matrix :
93
- java : [ '25-ea' ]
94
- os : [ 'ubuntu-latest', 'windows-2025' ]
90
+ java : [ '24' ]
91
+ os : [ 'windows-2025' ]
92
+ graalvm-distribution : [ 'mandrel' ]
95
93
runs-on : ${{ matrix.os }}
96
94
steps :
97
95
- uses : actions/checkout@v4
98
96
- name : Setup Rancher Desktop without GUI on Windows Server
99
- if : matrix.os == 'windows-2025'
100
97
run : |
101
98
iwr -Uri "https://raw.githubusercontent.com/microsoft/Windows-Containers/refs/heads/Main/helpful_tools/Install-DockerCE/uninstall-docker-ce.ps1" -OutFile uninstall-docker-ce.ps1
102
99
.\uninstall-docker-ce.ps1 -Force
@@ -109,12 +106,69 @@ jobs:
109
106
- uses : graalvm/setup-graalvm@v1
110
107
with :
111
108
java-version : ${{ matrix.java }}
112
- distribution : ' graalvm'
109
+ distribution : ${{ matrix. graalvm-distribution }}
113
110
github-token : ${{ secrets.GITHUB_TOKEN }}
114
111
cache : ' maven'
115
112
native-image-job-reports : ' true'
116
- # TODO The `-T 1.5C` flag cannot be used because the `native-maven-plugin` is poorly designed,
117
- # with many MOJOs bundled with the Maven lifecycle by default.
118
- # See https://github.com/graalvm/native-build-tools/issues/410 .
119
- - name : NativeTest on Oracle GraalVM For JDK ${{ matrix.java }} on ${{ matrix.os }}
113
+ - name : NativeTest on ${{ matrix.os }}
114
+ run : ./mvnw -PnativeTestInJava23+ clean test
115
+ native-test-ci-on-liberica :
116
+ name : NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
117
+ if : github.repository == 'linghengqian/hive-server2-jdbc-driver'
118
+ strategy :
119
+ matrix :
120
+ java : [ '24.0.2' ]
121
+ os : [ 'windows-2025' ]
122
+ graalvm-distribution : [ 'liberica' ]
123
+ runs-on : ${{ matrix.os }}
124
+ steps :
125
+ - uses : actions/checkout@v4
126
+ - name : Setup Rancher Desktop without GUI on Windows Server
127
+ run : |
128
+ iwr -Uri "https://raw.githubusercontent.com/microsoft/Windows-Containers/refs/heads/Main/helpful_tools/Install-DockerCE/uninstall-docker-ce.ps1" -OutFile uninstall-docker-ce.ps1
129
+ .\uninstall-docker-ce.ps1 -Force
130
+ ri .\uninstall-docker-ce.ps1
131
+ winget install --id jazzdelightsme.WingetPathUpdater --source winget
132
+ winget install --id SUSE.RancherDesktop --source winget
133
+ rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
134
+ ./subprojects/doc/helpful_tools/wait-for-rancher-desktop-backend.ps1
135
+ "PATH=$env:PATH" >> $env:GITHUB_ENV
136
+ - uses : graalvm/setup-graalvm@v1
137
+ with :
138
+ java-version : ${{ matrix.java }}
139
+ distribution : ${{ matrix.graalvm-distribution }}
140
+ github-token : ${{ secrets.GITHUB_TOKEN }}
141
+ cache : ' maven'
142
+ native-image-job-reports : ' true'
143
+ - name : NativeTest on ${{ matrix.os }}
144
+ run : ./mvnw -PnativeTestInJava23+ clean test
145
+ native-test-ci-on-oracle-graalvm :
146
+ name : NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
147
+ if : github.repository == 'linghengqian/hive-server2-jdbc-driver'
148
+ strategy :
149
+ matrix :
150
+ java : [ '25' ]
151
+ os : [ 'windows-2025' ]
152
+ graalvm-distribution : [ 'graalvm' ]
153
+ runs-on : ${{ matrix.os }}
154
+ steps :
155
+ - uses : actions/checkout@v4
156
+ - name : Setup Rancher Desktop without GUI on Windows Server
157
+ run : |
158
+ iwr -Uri "https://raw.githubusercontent.com/microsoft/Windows-Containers/refs/heads/Main/helpful_tools/Install-DockerCE/uninstall-docker-ce.ps1" -OutFile uninstall-docker-ce.ps1
159
+ .\uninstall-docker-ce.ps1 -Force
160
+ ri .\uninstall-docker-ce.ps1
161
+ winget install --id jazzdelightsme.WingetPathUpdater --source winget
162
+ winget install --id SUSE.RancherDesktop --source winget
163
+ rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
164
+ ./subprojects/doc/helpful_tools/wait-for-rancher-desktop-backend.ps1
165
+ "PATH=$env:PATH" >> $env:GITHUB_ENV
166
+ - uses : graalvm/setup-graalvm@v1
167
+ with :
168
+ java-version : ${{ matrix.java }}
169
+ distribution : ${{ matrix.graalvm-distribution }}
170
+ github-token : ${{ secrets.GITHUB_TOKEN }}
171
+ cache : ' maven'
172
+ native-image-job-reports : ' true'
173
+ - name : NativeTest on ${{ matrix.os }}
120
174
run : ./mvnw -PnativeTestInJava23+ clean test
0 commit comments