Skip to content

ci(nodectl): install openssl on windows runner for release build#153

Merged
Keshoid merged 1 commit into
release/nodectl/v0.5.0from
fix/nodectl-windows-openssl
May 19, 2026
Merged

ci(nodectl): install openssl on windows runner for release build#153
Keshoid merged 1 commit into
release/nodectl/v0.5.0from
fix/nodectl-windows-openssl

Conversation

@Keshoid
Copy link
Copy Markdown
Contributor

@Keshoid Keshoid commented May 18, 2026

Context

The Windows binary for nodectl failed to build in the Publish nodectl workflow:
https://github.com/RSquad/ton-rust-node/actions/runs/26028077294/job/76506563675

openssl-sys v0.9.112 could not locate an OpenSSL installation on the windows-latest runner (no OPENSSL_DIR, no VCPKG_ROOT), while the workflow only installs libssl-dev on Linux.

Change

Add a Windows-only step to .github/workflows/nodectl-release.yml that installs OpenSSL via vcpkg using the x64-windows-static-md triplet and exposes OPENSSL_DIR + OPENSSL_STATIC=1 to the cargo build. Result: the resulting nodectl.exe is statically linked against OpenSSL (no DLL dependency for end users), and vcpkg's OpenSSL build keeps the architectural assembly paths so runtime CPU dispatch still works.

No cache is added on purpose — the Windows release runs only on tags (~once every two weeks), so the ~6 min vcpkg install is acceptable in exchange for a simpler workflow.

Other targets are untouched.

Copilot AI review requested due to automatic review settings May 18, 2026 19:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the nodectl release workflow so the Windows release build can find and statically link OpenSSL via vcpkg.

Changes:

  • Adds a Windows-only OpenSSL installation step using vcpkg.
  • Exports OPENSSL_DIR and OPENSSL_STATIC=1 before the Cargo release build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Keshoid Keshoid requested a review from ITBear May 18, 2026 19:30
@Keshoid Keshoid merged commit 5616532 into release/nodectl/v0.5.0 May 19, 2026
16 checks passed
@Keshoid Keshoid deleted the fix/nodectl-windows-openssl branch May 19, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants