diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index b80c1b019..5f45ba68c 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -129,12 +129,8 @@ jobs: # link.exe is single-threaded and the long pole on Windows builds. Use # rustc's bundled lld-link instead. CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: rust-lld - # Fat LTO of the cdylib is single-threaded and the peak-memory step of the - # build. ThinLTO parallelizes it across the runner's cores, at some cost - # to runtime performance on our least performance-sensitive platform. - # Matches what the nodejs Windows builds already do in npm-publish.yml. - CARGO_PROFILE_RELEASE_LTO: thin - CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 16 + # Keep the repository's fat LTO / 1 codegen unit release profile to leave + # headroom below PyPI's file-size limit for Windows wheels. steps: - uses: actions/checkout@v6 with: