mirror of
https://github.com/Z3Prover/z3
synced 2026-02-22 08:17:37 +00:00
Refactor manylinux wheel production in nightly.yml workflow
- Fix ARM64 auditwheel repair to use manylinux_2_28_aarch64 platform - Update python-package job to copy pre-built manylinux wheels directly - Remove Linux wheel rebuilding from python-package job - Fix artifact naming: change PythonPackage to PythonPackages in publish-test-pypi Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
9e489da0d0
commit
f2ad141ddf
1 changed files with 7 additions and 7 deletions
14
.github/workflows/nightly.yml
vendored
14
.github/workflows/nightly.yml
vendored
|
|
@ -355,7 +355,7 @@ jobs:
|
||||||
pip install build git+https://github.com/rhelmot/auditwheel
|
pip install build git+https://github.com/rhelmot/auditwheel
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: cd src/api/python && CC=aarch64-none-linux-gnu-gcc CXX=aarch64-none-linux-gnu-g++ AR=aarch64-none-linux-gnu-ar LD=aarch64-none-linux-gnu-ld Z3_CROSS_COMPILING=aarch64 python -m build && AUDITWHEEL_PLAT= auditwheel repair --best-plat dist/*.whl && cd ../../..
|
run: cd src/api/python && CC=aarch64-none-linux-gnu-gcc CXX=aarch64-none-linux-gnu-g++ AR=aarch64-none-linux-gnu-ar LD=aarch64-none-linux-gnu-ld Z3_CROSS_COMPILING=aarch64 python -m build && AUDITWHEEL_PLAT=manylinux_2_28_aarch64 auditwheel repair --plat manylinux_2_28_aarch64 dist/*.whl && cd ../../..
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v6
|
||||||
|
|
@ -625,27 +625,27 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd artifacts
|
cd artifacts
|
||||||
ls
|
ls
|
||||||
mkdir -p osx-x64-bin osx-arm64-bin win32-bin win64-bin win-arm64-bin linux-x64-bin linux-arm64-bin
|
mkdir -p osx-x64-bin osx-arm64-bin win32-bin win64-bin win-arm64-bin
|
||||||
cd osx-x64-bin && unzip ../z3-*-x64-osx*.zip && cd ..
|
cd osx-x64-bin && unzip ../z3-*-x64-osx*.zip && cd ..
|
||||||
cd osx-arm64-bin && unzip ../z3-*-arm64-osx*.zip && cd ..
|
cd osx-arm64-bin && unzip ../z3-*-arm64-osx*.zip && cd ..
|
||||||
cd win32-bin && unzip ../z3-*-x86-win*.zip && cd ..
|
cd win32-bin && unzip ../z3-*-x86-win*.zip && cd ..
|
||||||
cd win64-bin && unzip ../z3-*-x64-win*.zip && cd ..
|
cd win64-bin && unzip ../z3-*-x64-win*.zip && cd ..
|
||||||
cd win-arm64-bin && unzip ../z3-*-arm64-win*.zip && cd ..
|
cd win-arm64-bin && unzip ../z3-*-arm64-win*.zip && cd ..
|
||||||
cd linux-arm64-bin && cp ../z3*_2_38_aarch64.whl . && cd ..
|
|
||||||
cd linux-x64-bin && cp ../z3*_27_x86_64.whl . && cd ..
|
|
||||||
|
|
||||||
- name: Build Python packages
|
- name: Build Python packages
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --user -U setuptools
|
python3 -m pip install --user -U setuptools
|
||||||
cd src/api/python
|
cd src/api/python
|
||||||
|
# Build source distribution
|
||||||
python3 setup.py sdist
|
python3 setup.py sdist
|
||||||
|
# Build wheels from macOS and Windows release zips
|
||||||
echo $PWD/../../../artifacts/win32-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
echo $PWD/../../../artifacts/win32-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
||||||
echo $PWD/../../../artifacts/win64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
echo $PWD/../../../artifacts/win64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
||||||
echo $PWD/../../../artifacts/win-arm64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
echo $PWD/../../../artifacts/win-arm64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
||||||
echo $PWD/../../../artifacts/osx-x64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
echo $PWD/../../../artifacts/osx-x64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
||||||
echo $PWD/../../../artifacts/osx-arm64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
echo $PWD/../../../artifacts/osx-arm64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
||||||
echo $PWD/../../../artifacts/linux-arm64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
# Copy pre-built manylinux wheels directly (already repaired by manylinux-python-* jobs)
|
||||||
echo $PWD/../../../artifacts/linux-x64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel
|
cp ../../../artifacts/*.whl dist/
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v6
|
||||||
|
|
@ -726,7 +726,7 @@ jobs:
|
||||||
- name: Download Python packages
|
- name: Download Python packages
|
||||||
uses: actions/download-artifact@v7.0.0
|
uses: actions/download-artifact@v7.0.0
|
||||||
with:
|
with:
|
||||||
name: PythonPackage
|
name: PythonPackages
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue