Fix actions in /.github/workflows/

This commit is contained in:
Mario Fink 2025-02-10 00:27:08 +01:00
parent 5b6ca45f18
commit 511b665643

View File

@ -12,7 +12,7 @@ jobs:
name: Prepare environment for wheel builds name: Prepare environment for wheel builds
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- name: Prepare wheel build - name: Prepare wheel build
run: make -C python/ setup run: make -C python/ setup
- name: Store wheel configuration files - name: Store wheel configuration files
@ -20,6 +20,8 @@ jobs:
with: with:
name: wheel-config name: wheel-config
path: python/ path: python/
- name: Display files
run: ls -lR
build_wheels: build_wheels:
name: Build binary wheels on ${{ matrix.os }} name: Build binary wheels on ${{ matrix.os }}
@ -31,8 +33,10 @@ jobs:
arch: [auto32, auto64, aarch64] arch: [auto32, auto64, aarch64]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- uses: pypa/cibuildwheel@v2.20.0 - uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.1.2
- name: Get wheel configuration files - name: Get wheel configuration files
uses: actions/download-artifact@v4.1.7 uses: actions/download-artifact@v4.1.7
with: with:
@ -46,7 +50,7 @@ jobs:
- name: Store binary wheels - name: Store binary wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: binary-wheels name: binary-wheels-${{matrix.os}}-${{matrix.arch}}
path: python/wheelhouse/*.whl path: python/wheelhouse/*.whl
build_sdist: build_sdist:
@ -54,13 +58,9 @@ jobs:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: [build_setup] needs: [build_setup]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- name: Install cython - name: Install cython
run: | run: python -m pip install cython==0.29.24
sudo apt-get update
sudo apt-get install -y cython3
env:
DEBIAN_FRONTEND: noninteractive
- name: Get wheel configuration files - name: Get wheel configuration files
uses: actions/download-artifact@v4.1.7 uses: actions/download-artifact@v4.1.7
with: with:
@ -74,10 +74,12 @@ jobs:
with: with:
name: source-wheels name: source-wheels
path: python/dist/*.tar.gz path: python/dist/*.tar.gz
- name: Display files
run: ls -lR
upload_pypi: upload_pypi:
name: Upload binary wheels to PyPI name: Upload wheels to PyPI
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: [build_wheels, build_sdist] needs: [build_wheels, build_sdist]
@ -90,8 +92,11 @@ jobs:
- name: Get binary wheels - name: Get binary wheels
uses: actions/download-artifact@v4.1.7 uses: actions/download-artifact@v4.1.7
with: with:
name: binary-wheels
path: dist/ path: dist/
pattern: binary-wheels-*
merge-multiple: true
- name: Display files
run: ls -lR
- uses: pypa/gh-action-pypi-publish@release/v1 - uses: pypa/gh-action-pypi-publish@release/v1
with: with: