Skip to content

BR-2: Windows CI proof — link a rusqlite program with reld on the windows-msvc runner #21

Closed

Description

@zackees

Sub-task of #17 (phase BR-2). Follows #18 (BR-1, merged in #20).

Goal

Prove the Windows COFF bridge in CI: on the existing windows-msvc runner, build a real Rust program with reld as the linker (-Clinker=<reld-link.exe>) and run it, asserting exit 0. This makes the bridge a continuously-verified gate rather than a one-time local check.

Deliverable

  1. Commit the e2e fixture — a two-crate, 16-source-file project with 4 dependencies including rusqlite (bundled → compiles + links the SQLite C amalgamation, exercising C linking through the bridge). Lives at ci/e2e/sqlite-bridge/, is its own workspace and added to the root [workspace].exclude so cargo build --workspace never pulls it in. Binary opens an in-memory SQLite DB, round-trips a row, prints an OK marker, exits 0.
  2. CI step on the windows-msvc matrix leg of .github/workflows/ci.yml, after the workspace build (so target/debug/reld-link.exe exists): build the fixture with the msvc linker pointed at the just-built reld-link.exe, run the resulting binary, assert exit 0 and the OK / SQLite-version markers. Fail loudly if the bridge note or the binary is missing.

Notes

  • Bridge-discovery unit tests already landed in BR-1 (crates/reld-core/src/bridge.rs), satisfying BR-2's "discovery unit tests" line.
  • CI uses bare cargo (no soldr); rustc is on PATH, so the bridge discovers rust-lld via rustc --print sysroot as designed.
  • Keep it msvc-only; macOS is BR-3.
  • Optional (not required): radlink smoke behind RELD_BRIDGE_LINKER.

Done when

The windows-msvc CI leg builds ci/e2e/sqlite-bridge with reld as linker and the binary runs green; existing legs unaffected; PR merged, this issue closed, branch rebased on origin/main.

Activity

  1. added
    enhancement
    on Aug 7, 2026
  2. added a commit that references this issue on Aug 7, 2026
    20c4678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions