1111
1212jobs :
1313 issue236 :
14- name : Windows ${{ matrix.os }} / JLL ${{ matrix.jll-version }}
14+ name : Windows ${{ matrix.os }} / ${{ matrix.connector }}
1515 runs-on : ${{ matrix.os }}
1616 timeout-minutes : 30
1717 strategy :
2020 os :
2121 - windows-2022
2222 - windows-2025
23- jll-version :
24- - default
25- - 3.3.9
23+ connector :
24+ - jll-default
25+ - jll-3.3.9
26+ - official-3.4.9
2627
2728 steps :
2829 - uses : actions/checkout@v5
@@ -39,12 +40,40 @@ jobs:
3940 mysql-version : " 8.4"
4041 root-password : root
4142
43+ - name : Download official Connector/C
44+ if : matrix.connector == 'official-3.4.9'
45+ shell : pwsh
46+ run : |
47+ $msi = Join-Path $env:RUNNER_TEMP "mariadb-connector-c-3.4.9-win64.msi"
48+ $target = Join-Path $env:RUNNER_TEMP "mariadb-connector-c-3.4.9"
49+ Invoke-WebRequest `
50+ -Uri "https://dlm.mariadb.com/4751028/Connectors/c/connector-c-3.4.9/mariadb-connector-c-3.4.9-win64.msi" `
51+ -OutFile $msi
52+ Start-Process msiexec.exe -Wait -ArgumentList @("/a", $msi, "/qn", "TARGETDIR=$target")
53+
54+ $dll = Get-ChildItem $target -Recurse -Filter libmariadb.dll | Select-Object -First 1
55+ if ($null -eq $dll) {
56+ throw "Could not find libmariadb.dll under $target"
57+ }
58+
59+ $plugin = Get-ChildItem $target -Recurse -Directory |
60+ Where-Object { Test-Path (Join-Path $_.FullName "caching_sha2_password.dll") } |
61+ Select-Object -First 1
62+ if ($null -eq $plugin) {
63+ throw "Could not find Connector/C plugin directory under $target"
64+ }
65+
66+ "MYSQLJL_LIBMARIADB_OVERRIDE=$($dll.FullName)" >> $env:GITHUB_ENV
67+ "MYSQLJL_PLUGIN_DIR_OVERRIDE=$($plugin.FullName)" >> $env:GITHUB_ENV
68+ "$($dll.DirectoryName)" >> $env:GITHUB_PATH
69+
4270 - name : Run issue 236 diagnostic
4371 shell : pwsh
4472 env :
4573 MYSQLJL_HOST : 127.0.0.1
4674 MYSQLJL_PORT : " 3306"
4775 MYSQLJL_USER : root
4876 MYSQLJL_PASSWORD : root
49- MYSQLJL_JLL_VERSION : ${{ matrix.jll-version }}
77+ MYSQLJL_CONNECTOR : ${{ matrix.connector }}
78+ MYSQLJL_JLL_VERSION : ${{ matrix.connector == 'jll-3.3.9' && '3.3.9' || 'default' }}
5079 run : julia --startup-file=no test/issue236_windows.jl
0 commit comments