SIGN IN SIGN UP

github: Build the Windows CI job with the MSVC toolchain (#2242)

The Windows job's `cargo build -p libsql --all-features` was being built
with the `x86_64-pc-windows-gnu` toolchain (MinGW/GCC), set as the
default host triple by `hecrj/setup-rust-action@v2`. MSVC was never
exercised. So breaks that only fail under MSVC -- like the SQLite 3.47.0
`#warning` that errors with C1021 -- compiled green here. We discovered
the gap when libsql-js (which builds with `--target
x86_64-pc-windows-msvc`) failed downstream on the same code.

Add `--target x86_64-pc-windows-msvc --release` so the Windows job
actually compiles the bundled SQLite encryption amalgamation (sqlite3mc)
with MSVC, and breaks surface in CI.

`cargo clean -p libsql-ffi` runs first so sqlite3mc is rebuilt from
source rather than restored from a cached target/.
P
Pekka Enberg committed
58161459018200cc9963e3fbdd584b065eb33fbe
Committed by GitHub <noreply@github.com> on 5/28/2026, 12:43:47 PM