Skip to content

Commit

Permalink
wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 13, 2024
1 parent eb0541b commit f1230d7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/wheels.yml
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
20 changes: 20 additions & 0 deletions scripts/build-manylinux-wheel.sh
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

0 comments on commit f1230d7

Please sign in to comment.