From 449f161db1c2514b4a3ec2b2aa5e8d671d13ce24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Behnam=20=F0=9F=85=B1=F0=9F=85=B4=20=F0=9F=A7=91=E2=80=8D?= =?UTF-8?q?=F0=9F=92=BB?= Date: Tue, 10 Nov 2026 21:17:59 +0000 Subject: [PATCH 1/2] ci: build supported Windows native dependencies Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65e47a2abb..f14645d395 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,18 +67,24 @@ jobs: brew link --force --overwrite libpq echo "/usr/local/opt/mysql-client/bin" >> "$GITHUB_PATH" - # vcpkg --triplet x64-windows install libmysql libpq sqlite3 openssl - # + vcpkg/installed/vcpkg (in particular, the status file) - name: Install Native Dependencies (Windows) if: matrix.platform.name == 'Windows' + shell: pwsh run: | - curl -fsLS -o vcpkg.7z https://blob.rocket.rs/vcpkg-2019-07-05.7z - 7z x vcpkg.7z -y -bb0 - xcopy .\vcpkg $env:VCPKG_INSTALLATION_ROOT /s /e /h /y /q - vcpkg integrate install + $ErrorActionPreference = 'Stop' + $root = Join-Path $env:RUNNER_TEMP 'rocket-vcpkg' + git clone --branch 2026.10.16 --depth 1 https://github.com/microsoft/vcpkg.git $root + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + if ((git -C $root rev-parse HEAD) -ne '9eec002df1cd109f8f104cd966a763daf9751489') { + throw 'Unexpected vcpkg revision' + } + & "$root\bootstrap-vcpkg.bat" -disableMetrics + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + & "$root\vcpkg.exe" install libmysql libpq sqlite3 openssl --triplet x64-windows --clean-after-build + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } echo "VCPKGRS_DYNAMIC=1" >> "$env:GITHUB_ENV" - echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" >> "$env:GITHUB_ENV" - echo "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" >> "$env:GITHUB_PATH" + echo "VCPKG_ROOT=$root" >> "$env:GITHUB_ENV" + echo "$root\installed\x64-windows\bin" >> "$env:GITHUB_PATH" - name: Install Native Dependencies (Linux) if: matrix.platform.name == 'Linux' From a56938383cc49b6eb652bfbebf26572c7b38558e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Behnam=20=F0=9F=85=B1=F0=9F=85=B4=20=F0=9F=A7=91=E2=80=8D?= =?UTF-8?q?=F0=9F=92=BB?= Date: Tue, 10 Nov 2026 21:53:36 +0000 Subject: [PATCH 2/2] test: guard Unix-only shutdown signal configuration Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- core/lib/tests/response-stream-errors.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/lib/tests/response-stream-errors.rs b/core/lib/tests/response-stream-errors.rs index 5919ffdda0..53a4494c0b 100644 --- a/core/lib/tests/response-stream-errors.rs +++ b/core/lib/tests/response-stream-errors.rs @@ -119,6 +119,7 @@ impl Server { config.address = [127, 0, 0, 1].into(); config.log_level = rocket::config::LogLevel::Off; config.shutdown.ctrlc = false; + #[cfg(unix)] config.shutdown.signals.clear(); config.shutdown.grace = 1; config.shutdown.mercy = 1;