Skip to content

Commit 168642c

Browse files
committed
Test older versions of GraalVM CE on Windows Server 2025
1 parent 1f38053 commit 168642c

File tree

1 file changed

+71
-17
lines changed

1 file changed

+71
-17
lines changed

.github/workflows/test.yml

Lines changed: 71 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ on:
2121
branches:
2222
- master
2323
workflow_dispatch:
24-
permissions:
25-
pull-requests: write
2624
jobs:
2725
license-check:
2826
runs-on: 'ubuntu-latest'
@@ -35,7 +33,7 @@ jobs:
3533
if: github.repository == 'linghengqian/hive-server2-jdbc-driver'
3634
strategy:
3735
matrix:
38-
java: [ '17', '24' ]
36+
java: [ '17', '25' ]
3937
os: [ 'ubuntu-latest', 'windows-2025' ]
4038
runs-on: ${{ matrix.os }}
4139
steps:
@@ -63,7 +61,7 @@ jobs:
6361
if: github.repository == 'linghengqian/hive-server2-jdbc-driver'
6462
strategy:
6563
matrix:
66-
java: [ '22.0.2', '24.0.2' ]
64+
java: [ '22.0.2', '25' ]
6765
os: [ 'ubuntu-latest' ]
6866
runs-on: ${{ matrix.os }}
6967
steps:
@@ -81,22 +79,21 @@ jobs:
8179
- name: NativeTest on GraalVM CE For JDK 22.0.2 on ${{ matrix.os }}
8280
if: matrix.java == '22.0.2'
8381
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'
8684
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 }}
9087
if: github.repository == 'linghengqian/hive-server2-jdbc-driver'
9188
strategy:
9289
matrix:
93-
java: [ '25-ea' ]
94-
os: [ 'ubuntu-latest', 'windows-2025' ]
90+
java: [ '24' ]
91+
os: [ 'windows-2025' ]
92+
graalvm-distribution: [ 'mandrel' ]
9593
runs-on: ${{ matrix.os }}
9694
steps:
9795
- uses: actions/checkout@v4
9896
- name: Setup Rancher Desktop without GUI on Windows Server
99-
if: matrix.os == 'windows-2025'
10097
run: |
10198
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
10299
.\uninstall-docker-ce.ps1 -Force
@@ -109,12 +106,69 @@ jobs:
109106
- uses: graalvm/setup-graalvm@v1
110107
with:
111108
java-version: ${{ matrix.java }}
112-
distribution: 'graalvm'
109+
distribution: ${{ matrix.graalvm-distribution }}
113110
github-token: ${{ secrets.GITHUB_TOKEN }}
114111
cache: 'maven'
115112
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 }}
120174
run: ./mvnw -PnativeTestInJava23+ clean test

0 commit comments

Comments
 (0)