Mercurial > hg
changeset 52200:94ded8440db6 stable
ci: use a pre-setup many-linux image to build wheel
This produce wheel that are more universal and identical to the one we want to
publish.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 06 Nov 2024 16:39:45 +0100 |
parents | d22b6d6e02e1 |
children | 7dd466f13f9b |
files | contrib/heptapod-ci.yml |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/heptapod-ci.yml Wed Nov 06 16:38:57 2024 +0100 +++ b/contrib/heptapod-ci.yml Wed Nov 06 16:39:45 2024 +0100 @@ -39,9 +39,8 @@ when: on_success needs: [] -# TODO: we should use an image based on manylinux instead "all-in-one" image -# used for all test so far. .build-wheel: &wheel + image: "registry.heptapod.net/mercurial/ci-images/core-wheel-x86_64-c:v3.0" <<: *all stage: build variables: @@ -50,14 +49,13 @@ MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1" CI_CLEVER_CLOUD_FLAVOR: "XS" before_script: - - echo "python used, $PYTHON" - - $PYTHON --version - echo $WHEEL_TYPE - test -n "$WHEEL_TYPE" - echo $FLAVOR - mkdir -p wheels/$WHEEL_TYPE script: - - $PYTHON setup.py bdist_wheel $FLAVOR --dist-dir wheels/$WHEEL_TYPE + - /opt/python/cp311-cp311/bin/python setup.py bdist_wheel --dist-dir tmp-wheelhouse + - auditwheel repair tmp-wheelhouse/*.whl -w wheels/$WHEEL_TYPE/ artifacts: paths: - wheels/$WHEEL_TYPE