Skip to content

Use the runner's OpenSSL for Windows release wheels - #168

Merged
CodingInAVan merged 1 commit into
mainfrom
release-windows-preinstalled-openssl
Sep 30, 2026
Merged

CodingInAVan merged 1 commit into
mainfrom
release-windows-preinstalled-openssl

Conversation

@CodingInAVan

Copy link
Copy Markdown
Contributor

The Windows wheel build for v1.3.0rc3 failed while installing OpenSSL: choco install openssl downloads its installer from slproweb.com, and that download is cut off on GitHub-hosted runners, so retries fail too.

  • Use the OpenSSL 3.x that the windows-2022 image already installs at C:\Program Files\OpenSSL (the full installer, with headers and import libraries). OPENSSL_ROOT_DIR and delvewheel's --add-path point there, and the pre-build step logs its version, failing if it is missing.
  • Add -DCMAKE_REQUIRE_FIND_PACKAGE_OpenSSL=ON to the Windows CMake arguments. find_package(OpenSSL) is QUIET, so without it a missing OpenSSL builds an HTTP-only wheel without an error.

Checked locally with a CMake project using the same lookup: with the flag, a missing OpenSSL fails the configure; without it, the configure passes with OpenSSL_FOUND=FALSE. A workflow_dispatch run of release.yml on this branch builds the wheels without publishing.

After this merges, v1.3.0rc3 gets re-created on the merge commit. Nothing was published under the current tag.

🤖 Generated with Claude Code

The release job installed OpenSSL with `choco install openssl`, whose
installer download from slproweb.com fails on GitHub-hosted runners, so the
Windows wheels for v1.3.0rc3 never built. The windows-2022 image already
installs the full OpenSSL 3.x (headers and import libraries) at
C:\Program Files\OpenSSL, so point OPENSSL_ROOT_DIR and delvewheel's
--add-path there and log its version before the build.

find_package(OpenSSL) is QUIET, so a missing OpenSSL used to produce an
HTTP-only wheel without complaint. CMAKE_REQUIRE_FIND_PACKAGE_OpenSSL makes
it a configure error for the Windows release build.
@CodingInAVan
CodingInAVan merged commit 0573646 into main Sep 30, 2026
15 checks passed
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.

1 participant