diff --git a/.github/workflows/check_graalvm.yml b/.github/workflows/check_graalvm.yml index ab6d63f185..8a13f49dff 100644 --- a/.github/workflows/check_graalvm.yml +++ b/.github/workflows/check_graalvm.yml @@ -10,8 +10,12 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, macos-11] + os: [ubuntu-20.04, macos-11, windows-2022] transport: [native, nio] + exclude: + # excludes native on Windows (there's none) + - os: windows-2022 + transport: native steps: - uses: actions/checkout@v4 @@ -24,8 +28,10 @@ jobs: run: | if [ "$RUNNER_OS" == "Linux" ]; then download_url="https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz" - else + elif [ "$RUNNER_OS" == "macOS" ]; then download_url="https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_macos-x64_bin.tar.gz" + else + download_url="https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_windows-x64_bin.zip" fi curl -L $download_url --output $RUNNER_TEMP/java_package.tar.gz shell: bash diff --git a/reactor-netty-graalvm-smoke-tests/build.gradle b/reactor-netty-graalvm-smoke-tests/build.gradle index ec960bf470..e7c9bc76cb 100644 --- a/reactor-netty-graalvm-smoke-tests/build.gradle +++ b/reactor-netty-graalvm-smoke-tests/build.gradle @@ -58,6 +58,7 @@ graalvmNative { if (project.hasProperty("forceTransport")) { runtimeArgs.add("-DforceTransport=$forceTransport") } + buildArgs.add('--initialize-at-run-time=sun.net.dns.ResolverConfigurationImpl') } } metadataRepository { diff --git a/reactor-netty-graalvm-smoke-tests/src/test/resources/META-INF/native-image/jni-config.json b/reactor-netty-graalvm-smoke-tests/src/test/resources/META-INF/native-image/jni-config.json index dcc03d69ea..8318c0ff9b 100644 --- a/reactor-netty-graalvm-smoke-tests/src/test/resources/META-INF/native-image/jni-config.json +++ b/reactor-netty-graalvm-smoke-tests/src/test/resources/META-INF/native-image/jni-config.json @@ -122,5 +122,12 @@ ] } ] + }, + { + "name":"sun.net.dns.ResolverConfigurationImpl", + "fields":[ + {"name":"os_searchlist"}, + {"name":"os_nameservers"} + ] } ]