Skip to content

Commit 3a259e9

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

File tree

1 file changed

+70
-16
lines changed

1 file changed

+70
-16
lines changed

.github/workflows/test.yml

Lines changed: 70 additions & 16 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,81 @@ 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'
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 }}
86144
run: ./mvnw -PnativeTestInJava23+ clean test
87-
# todo wait for GraalVM CE For JDK 25 release
88145
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 }}
90147
if: github.repository == 'linghengqian/hive-server2-jdbc-driver'
91148
strategy:
92149
matrix:
93-
java: [ '25-ea' ]
94-
os: [ 'ubuntu-latest', 'windows-2025' ]
150+
java: [ '25' ]
151+
os: [ 'windows-2025' ]
152+
graalvm-distribution: [ 'graalvm' ]
95153
runs-on: ${{ matrix.os }}
96154
steps:
97155
- uses: actions/checkout@v4
98156
- name: Setup Rancher Desktop without GUI on Windows Server
99-
if: matrix.os == 'windows-2025'
100157
run: |
101158
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
102159
.\uninstall-docker-ce.ps1 -Force
@@ -109,12 +166,9 @@ jobs:
109166
- uses: graalvm/setup-graalvm@v1
110167
with:
111168
java-version: ${{ matrix.java }}
112-
distribution: 'graalvm'
169+
distribution: ${{ matrix.graalvm-distribution }}
113170
github-token: ${{ secrets.GITHUB_TOKEN }}
114171
cache: 'maven'
115172
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 }}
120174
run: ./mvnw -PnativeTestInJava23+ clean test

0 commit comments

Comments
 (0)