Skip to content

Commit 39174fe

Browse files
committed
CI: build the bundled libgit2 in Release mode for wheels
build.sh defaults BUILD_TYPE to Debug and neither cibuildwheel environment set it, so every wheel built through it shipped an unoptimized libgit2.
1 parent 663d3d7 commit 39174fe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/wheels.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
CIBW_ARCHS: ${{ matrix.cibw_arch }}
190190
CIBW_SKIP: ${{ matrix.cibw_skip }}
191191
CIBW_CONTAINER_ENGINE: 'docker; create_args: -v ${{ github.workspace }}/ci:/project/ci'
192-
CIBW_ENVIRONMENT: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.7 LIBGIT2=/project/ci
192+
CIBW_ENVIRONMENT: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.7 LIBGIT2=/project/ci BUILD_TYPE=Release
193193

194194
- uses: actions/upload-artifact@v7
195195
with:

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ skip = "*musllinux_ppc64le"
99
archs = ["native"]
1010
build-frontend = "default"
1111
dependency-versions = "pinned"
12-
environment = {LIBGIT2="$(pwd)/ci", LIBGIT2_VERSION="1.9.7", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.5.7"}
12+
environment = {LIBGIT2="$(pwd)/ci", LIBGIT2_VERSION="1.9.7", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.5.7", BUILD_TYPE="Release"}
1313

1414
before-all = "sh build.sh"
1515
test-command = "pytest"

0 commit comments

Comments
 (0)