Skip to content

Commit 0d2a65e

Browse files
committed
Test older versions of GraalVM CE on Windows Server 2025
1 parent 4b65e9f commit 0d2a65e

File tree

1 file changed

+62
-12
lines changed

1 file changed

+62
-12
lines changed

.github/workflows/test.yml

Lines changed: 62 additions & 12 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'
@@ -82,19 +80,74 @@ jobs:
8280
- name: NativeTest on GraalVM CE For JDK 24.0.2 on ${{ matrix.os }}
8381
if: matrix.java == '24.0.2'
8482
run: ./mvnw -PnativeTestInJava23+ clean test
85-
# todo wait for GraalVM CE For JDK 25 release
83+
native-test-ci-on-mandrel:
84+
name: NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
85+
if: github.repository == 'linghengqian/hive-server2-jdbc-driver'
86+
strategy:
87+
matrix:
88+
java: [ '24' ]
89+
os: [ 'windows-2025' ]
90+
graalvm-distribution: [ 'mandrel' ]
91+
runs-on: ${{ matrix.os }}
92+
steps:
93+
- uses: actions/checkout@v4
94+
- name: Setup Rancher Desktop without GUI on Windows Server
95+
run: |
96+
./subprojects/doc/helpful_tools/uninstall-docker-engine-for-wcow.ps1
97+
winget install --id jazzdelightsme.WingetPathUpdater --source winget
98+
winget install --id SUSE.RancherDesktop --source winget
99+
rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
100+
./subprojects/doc/helpful_tools/wait-for-rancher-desktop-backend.ps1
101+
"PATH=$env:PATH" >> $env:GITHUB_ENV
102+
- uses: graalvm/setup-graalvm@v1
103+
with:
104+
java-version: ${{ matrix.java }}
105+
distribution: ${{ matrix.graalvm-distribution }}
106+
github-token: ${{ secrets.GITHUB_TOKEN }}
107+
cache: 'maven'
108+
native-image-job-reports: 'true'
109+
- name: NativeTest on ${{ matrix.os }}
110+
run: ./mvnw -PnativeTestInJava23+ clean test
111+
native-test-ci-on-liberica:
112+
name: NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
113+
if: github.repository == 'linghengqian/hive-server2-jdbc-driver'
114+
strategy:
115+
matrix:
116+
java: [ '24.0.2' ]
117+
os: [ 'windows-2025' ]
118+
graalvm-distribution: [ 'liberica' ]
119+
runs-on: ${{ matrix.os }}
120+
steps:
121+
- uses: actions/checkout@v4
122+
- name: Setup Rancher Desktop without GUI on Windows Server
123+
run: |
124+
./subprojects/doc/helpful_tools/uninstall-docker-engine-for-wcow.ps1
125+
winget install --id jazzdelightsme.WingetPathUpdater --source winget
126+
winget install --id SUSE.RancherDesktop --source winget
127+
rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
128+
./subprojects/doc/helpful_tools/wait-for-rancher-desktop-backend.ps1
129+
"PATH=$env:PATH" >> $env:GITHUB_ENV
130+
- uses: graalvm/setup-graalvm@v1
131+
with:
132+
java-version: ${{ matrix.java }}
133+
distribution: ${{ matrix.graalvm-distribution }}
134+
github-token: ${{ secrets.GITHUB_TOKEN }}
135+
cache: 'maven'
136+
native-image-job-reports: 'true'
137+
- name: NativeTest on ${{ matrix.os }}
138+
run: ./mvnw -PnativeTestInJava23+ clean test
86139
native-test-ci-on-oracle-graalvm:
87-
name: NativeTest - Oracle GraalVM for JDK ${{ matrix.java }} on ${{ matrix.os }}
140+
name: NativeTest - ${{ matrix.graalvm-distribution }} for JDK ${{ matrix.java }} on ${{ matrix.os }}
88141
if: github.repository == 'linghengqian/hive-server2-jdbc-driver'
89142
strategy:
90143
matrix:
91-
java: [ '25-ea' ]
92-
os: [ 'ubuntu-latest', 'windows-2025' ]
144+
java: [ '24.0.2' ]
145+
os: [ 'windows-2025' ]
146+
graalvm-distribution: [ 'graalvm' ]
93147
runs-on: ${{ matrix.os }}
94148
steps:
95149
- uses: actions/checkout@v4
96150
- name: Setup Rancher Desktop without GUI on Windows Server
97-
if: matrix.os == 'windows-2025'
98151
run: |
99152
./subprojects/doc/helpful_tools/uninstall-docker-engine-for-wcow.ps1
100153
winget install --id jazzdelightsme.WingetPathUpdater --source winget
@@ -105,12 +158,9 @@ jobs:
105158
- uses: graalvm/setup-graalvm@v1
106159
with:
107160
java-version: ${{ matrix.java }}
108-
distribution: 'graalvm'
161+
distribution: ${{ matrix.graalvm-distribution }}
109162
github-token: ${{ secrets.GITHUB_TOKEN }}
110163
cache: 'maven'
111164
native-image-job-reports: 'true'
112-
# TODO The `-T 1.5C` flag cannot be used because the `native-maven-plugin` is poorly designed,
113-
# with many MOJOs bundled with the Maven lifecycle by default.
114-
# See https://github.com/graalvm/native-build-tools/issues/410 .
115-
- name: NativeTest on Oracle GraalVM For JDK ${{ matrix.java }} on ${{ matrix.os }}
165+
- name: NativeTest on ${{ matrix.os }}
116166
run: ./mvnw -PnativeTestInJava23+ clean test

0 commit comments

Comments
 (0)