Skip to content

Commit

Permalink
[build] Add Windows OS to the matrix for GraalVM CI tests (#2955)
Browse files Browse the repository at this point in the history
Apply a workaround for oracle/graal#4304
  • Loading branch information
violetagg committed Nov 2, 2023
1 parent e27921e commit e62d7f9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/check_graalvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions reactor-netty-graalvm-smoke-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ graalvmNative {
if (project.hasProperty("forceTransport")) {
runtimeArgs.add("-DforceTransport=$forceTransport")
}
buildArgs.add('--initialize-at-run-time=sun.net.dns.ResolverConfigurationImpl')
}
}
metadataRepository {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,12 @@
]
}
]
},
{
"name":"sun.net.dns.ResolverConfigurationImpl",
"fields":[
{"name":"os_searchlist"},
{"name":"os_nameservers"}
]
}
]

0 comments on commit e62d7f9

Please # to comment.