Description
The zig build unit-test step in CI fails on Windows with:
error: unable to find dynamic system library 'sqlite3' using strategy 'paths_first'. searched paths: none
Root Cause
The unit-test build step includes tests for src/xml.zig, which links against sqlite3. Without -Dbundle-sqlite=true, the build falls back to linkSystemLibrary("sqlite3") — a library that does not exist on Windows.
The SQLite amalgamation is already downloaded by the preceding step, so passing -Dbundle-sqlite=true is sufficient.
Acceptance Criteria
Description
The
zig build unit-teststep in CI fails on Windows with:Root Cause
The
unit-testbuild step includes tests forsrc/xml.zig, which links against sqlite3. Without-Dbundle-sqlite=true, the build falls back tolinkSystemLibrary("sqlite3")— a library that does not exist on Windows.The SQLite amalgamation is already downloaded by the preceding step, so passing
-Dbundle-sqlite=trueis sufficient.Acceptance Criteria
zig build unit-test -Dbundle-sqlite=trueis used in CI