feat(gateway,cli): windows compilation support - #2496
Conversation
|
All contributors have signed the DCO ✍️ ✅ |
|
I have read the DCO document and I hereby sign the DCO. |
1 similar comment
|
I have read the DCO document and I hereby sign the DCO. |
|
/ok to test d0bcaca |
|
I have read the DCO document and I hereby sign the DCO. |
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Akber Raza <[email protected]>
…ove build logic Signed-off-by: Akber Raza <[email protected]>
… with bundled Z3 features Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Giedrius Burachas <[email protected]> Signed-off-by: Akber Raza <[email protected]>
…re-specific subdirectories Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Akber Raza <[email protected]>
…ation and scripts Signed-off-by: Akber Raza <[email protected]>
Why: windows-msvc-build-design.mdx is a design document ("design decisions for
the native Windows MSVC build lane"), but it lived in the published, user-facing
docs/reference/ tree. Per AGENTS.md (Documentation) and architecture/README.md
("rfc/ vs architecture/"), design content belongs in architecture/ (or rfc/),
not in published reference. It also shared Fern sidebar "position: 6" with the
MXC compute-driver design page, colliding in the Reference nav ordering.
What:
- Move docs/reference/windows-msvc-build-design.mdx ->
architecture/windows-msvc-build.md.
- Strip the Fern publish frontmatter and add a plain H1, matching the other
architecture docs.
- Register it in the architecture doc index in architecture/README.md.
- Repoint the inbound references (build-openshell-mxc-windows skill + reference,
implement-openshell-mxc-driver skill) to the new path.
With both design pages moved out of docs/reference/, the duplicate position-6
sidebar collision is resolved.
Signed-off-by: Akber Raza <[email protected]>
…est exclusion list Signed-off-by: Akber Raza <[email protected]> # Conflicts: # tasks/scripts/windows-msvc.ps1
openshell-gateway-interceptors failed to compile on Windows (E0432: no UnixStream in tokio::net), breaking any Windows build of openshell-server (which depends on it unconditionally). The connect_unix_endpoint fn was already #[cfg(unix)]-gated, but the imports it uses (UnixStream, TokioIo, Uri, service_fn) were left ungated. Gate those four imports with #[cfg(unix)] too. No behavior change on unix; Windows now compiles (no errors, no unused-import warnings). Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]> Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Shailendra Singh <[email protected]>
Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Akber Raza <[email protected]>
Signed-off-by: Akber Raza <[email protected]>
d0bcaca to
6d0f148
Compare
Signed-off-by: Akber Raza <[email protected]>
|
/ok to test 15c622a |
|
/ok to test 7c96e78 |
|
/ok to test 7c96e78 |
Signed-off-by: Akber Raza <[email protected]>
…nShell into windows_compilation
|
/ok to test 923ecf0 |
|
/ok to test c1d5e98 |
|
/ok to test d1fa290 |
1 similar comment
|
/ok to test d1fa290 |
| From the OpenShell checkout root, use: | ||
|
|
||
| ```powershell | ||
| git fetch gitlab main |
There was a problem hiding this comment.
should the gitlab references be converted into github? or make the skill origin-agnostic?
|
One question came up while reviewing this - was having driver crates conditional in the server crate, rather than rely on stubs for each driver considered? I did a quick spike here and I think this should work, but don't have a windows machine to check: araza008/OpenShell@windows_compilation...NVIDIA:OpenShell:spike/windows-exclude-unsupported-drivers This way driver crates don't need any conditions, they are just excluded from the build process. There are some guard required in the server crate itself, but that seems a bit less intrusive than condition + a stub for all driver crates. |
Summary
compile the OpenShell gateway and CLI natively on Windows MSVC for x86-64 and arm64. It is build support only. It does not add functional Windows support for MXC, the sandbox supervisor, or Windows services.
Related Issue
Changes
adds windows mise tasks
supports bundled-z3 with optional system z3
gates unix-only dependencies so the geteway and cli compile on windows
adds linting and pre-commit tasks
Testing
mise run --skip-tools windows:build:x64
mise run --skip-tools windows:build:arm64
Checklist