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,81 @@ 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'
84
+ run : ./mvnw -PnativeTestInJava23+ clean test
85
+ native-test-ci-on-mandrel :
86
+ name : NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
87
+ if : github.repository == 'linghengqian/hive-server2-jdbc-driver'
88
+ strategy :
89
+ matrix :
90
+ java : [ '24' ]
91
+ os : [ 'windows-2025' ]
92
+ graalvm-distribution : [ 'mandrel' ]
93
+ runs-on : ${{ matrix.os }}
94
+ steps :
95
+ - uses : actions/checkout@v4
96
+ - name : Setup Rancher Desktop without GUI on Windows Server
97
+ run : |
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
99
+ .\uninstall-docker-ce.ps1 -Force
100
+ ri .\uninstall-docker-ce.ps1
101
+ winget install --id jazzdelightsme.WingetPathUpdater --source winget
102
+ winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
103
+ rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
104
+ ./subprojects/doc/helpful_tools/wait-for-rancher-desktop-backend.ps1
105
+ "PATH=$env:PATH" >> $env:GITHUB_ENV
106
+ - uses : graalvm/setup-graalvm@v1
107
+ with :
108
+ java-version : ${{ matrix.java }}
109
+ distribution : ${{ matrix.graalvm-distribution }}
110
+ github-token : ${{ secrets.GITHUB_TOKEN }}
111
+ cache : ' maven'
112
+ native-image-job-reports : ' true'
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 --skip-dependencies
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 }}
86
144
run : ./mvnw -PnativeTestInJava23+ clean test
87
- # todo wait for GraalVM CE For JDK 25 release
88
145
native-test-ci-on-oracle-graalvm :
89
- name : NativeTest - Oracle GraalVM for JDK ${{ matrix.java }} on ${{ matrix.os }}
146
+ name : NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
90
147
if : github.repository == 'linghengqian/hive-server2-jdbc-driver'
91
148
strategy :
92
149
matrix :
93
- java : [ '25-ea' ]
94
- os : [ 'ubuntu-latest', 'windows-2025' ]
150
+ java : [ '25' ]
151
+ os : [ 'windows-2025' ]
152
+ graalvm-distribution : [ 'graalvm' ]
95
153
runs-on : ${{ matrix.os }}
96
154
steps :
97
155
- uses : actions/checkout@v4
98
156
- name : Setup Rancher Desktop without GUI on Windows Server
99
- if : matrix.os == 'windows-2025'
100
157
run : |
101
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
102
159
.\uninstall-docker-ce.ps1 -Force
@@ -109,12 +166,9 @@ jobs:
109
166
- uses : graalvm/setup-graalvm@v1
110
167
with :
111
168
java-version : ${{ matrix.java }}
112
- distribution : ' graalvm'
169
+ distribution : ${{ matrix. graalvm-distribution }}
113
170
github-token : ${{ secrets.GITHUB_TOKEN }}
114
171
cache : ' maven'
115
172
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 }}
173
+ - name : NativeTest on ${{ matrix.os }}
120
174
run : ./mvnw -PnativeTestInJava23+ clean test
0 commit comments