-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb0541b
commit f1230d7
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: wheels | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
wheels: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: ["manylinux_2_28_x86_64"] | ||
python_version: [ {cp: cp39-cp39, py: 39}, {cp: cp310-cp310, py: 3.10}, {cp: cp311-cp311, py: 3.11}, {cp: cp312-cp312, py: 3.12} ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Building wheel | ||
run: docker run -e PYPATH=/opt/python/${{ matrix.python_version.cp }} -e PYTHON_VERSION=${{ matrix.python_version.py }} --rm -v `pwd`:/project quay.io/pypa/${{ matrix.image }} /project/scripts/build-manylinux-wheel.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
if [ -x /usr/bin/yum ]; then | ||
yum install -y python${PYTHON_VERSION}-devel.x86_64 clang libffi-devel eigen3-devel | ||
fi | ||
|
||
if [ -e /tmp/wheels ]; then | ||
echo "/tmp/wheels should not exist!" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p /tmp/wheels | ||
|
||
${PYPATH}/bin/python -m pip wheel -v /project -w /tmp/wheels --no-deps | ||
wheel=$(ls /tmp/wheels/*.whl) | ||
|
||
# Apply fixups. | ||
auditwheel repair ${wheel} -w /project/dist |