@@ -512,10 +512,30 @@ jobs:
512512 cmake --install "$env:BUILD_DIR" --config Release
513513 if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
514514
515+ - name : Bundle SQLite runtime DLL
516+ shell : pwsh
517+ run : |
518+ $sqliteDll = Get-ChildItem -Path "$env:GITHUB_WORKSPACE\vcpkg\installed\x64-windows" -Recurse -File -Filter "sqlite3.dll" |
519+ Select-Object -First 1
520+
521+ if (-not $sqliteDll) {
522+ throw "sqlite3.dll not found in vcpkg installed tree"
523+ }
524+
525+ New-Item -ItemType Directory -Force -Path "$env:INSTALL_DIR\bin" | Out-Null
526+ Copy-Item -LiteralPath $sqliteDll.FullName -Destination "$env:INSTALL_DIR\bin\sqlite3.dll" -Force
527+
528+ if (!(Test-Path "$env:INSTALL_DIR\bin\sqlite3.dll")) {
529+ throw "failed to copy sqlite3.dll into SDK bin directory"
530+ }
531+
532+ Write-Host "Bundled sqlite3.dll from $($sqliteDll.FullName)"
533+
515534 - name : Verify installed SDK tree
516535 shell : pwsh
517536 run : |
518537 if (!(Test-Path "$env:INSTALL_DIR\bin\vix.exe")) { throw "missing bin\vix.exe" }
538+ if (!(Test-Path "$env:INSTALL_DIR\bin\sqlite3.dll")) { throw "missing bin\sqlite3.dll" }
519539 if (!(Test-Path "$env:INSTALL_DIR\include\vix.hpp")) { throw "missing include\vix.hpp" }
520540 if (!(Test-Path "$env:INSTALL_DIR\include\vix\websocket.hpp")) { throw "missing include\vix\websocket.hpp" }
521541 if (!(Test-Path "$env:INSTALL_DIR\lib\cmake\Vix\VixConfig.cmake")) { throw "missing VixConfig.cmake" }
@@ -540,6 +560,7 @@ jobs:
540560 Expand-Archive -LiteralPath "dist\$env:ASSET" -DestinationPath smoke-sdk -Force
541561
542562 if (!(Test-Path "smoke-sdk\bin\vix.exe")) { throw "archive missing bin\vix.exe" }
563+ if (!(Test-Path "smoke-sdk\bin\sqlite3.dll")) { throw "archive missing bin\sqlite3.dll" }
543564 if (!(Test-Path "smoke-sdk\include\vix.hpp")) { throw "archive missing include\vix.hpp" }
544565 if (!(Test-Path "smoke-sdk\lib\cmake\Vix\VixConfig.cmake")) { throw "archive missing VixConfig.cmake" }
545566
0 commit comments