Skip to content

Commit

Permalink
github actions: Trying ubuntu-24.04 to see if that can build universa…
Browse files Browse the repository at this point in the history
…l wheels using `python -m build`
  • Loading branch information
StephenCzarnecki committed Oct 25, 2024
1 parent 52bdefd commit 9e1f849
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,32 @@ jobs:

build_wheels_manylinux:
name: Build manylinux wheels
runs-on: ubuntu-22.04
name: ${{ matrix.os }} ${{ matrix.python-version }} wheels
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Need to use the image specified below to build manylinux wheels
# PyPi only accepts manylinux wheels, it does not accept wheels for specific versions/architectures
# Note that at least manylinux2014 is needed to get support for C++17
- name: Build manylinux Python wheels
uses: RalfG/[email protected]_x86_64
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
build-requirements: 'setuptools'
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
pip install wheel
pip install setuptools
pip install build
- name: build
run: python -m build

- name: upload wheels
uses: actions/upload-artifact@v3
with:
path: ./dist/*-manylinux*.whl

path: ./dist/*.whl

0 comments on commit 9e1f849

Please sign in to comment.