Skip to content

Commit

Permalink
Bring it back to life.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrodehl committed Sep 14, 2024
1 parent ad3ddcd commit 0cdb994
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
sha: ${{ steps.autotag.outputs.tagsha }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Autoadd release Tags
uses: sbrodehl/action-autotag@v2
uses: sbrodehl/action-autotag@v3
id: autotag
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -55,10 +55,10 @@ jobs:
if: ${{ needs.auto-tag.outputs.sha && inputs.deploy }}
steps:
- name: Download all the dists
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: wheels
path: ./dist/
merge-multiple: true
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand All @@ -83,12 +83,12 @@ jobs:
- os: ubuntu-20.04
cibw_archs: "aarch64"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.x

Expand All @@ -100,15 +100,16 @@ jobs:

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.11.2
python -m pip install cibuildwheel
- name: Build wheels for CPython 3.10 / 3.11
- name: Build wheels for CPython 3.10+
run: |
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp310-* cp311-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_24
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_24
CIBW_BUILD: "{c,p}p3*"
CIBW_SKIP: "{c,p}p3{6..9}-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
CIBW_BEFORE_ALL_LINUX: apt-get update && apt-get --yes --allow-downgrades --allow-remove-essential install libatlas-base-dev
CIBW_BEFORE_BUILD: python -m pip install -U pip && python -m pip install -r requirements.txt
CIBW_ARCHS: ${{ matrix.cibw_archs }}
Expand All @@ -117,26 +118,26 @@ jobs:
run: |
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp37-* cp38-* cp39-*"
CIBW_BUILD: "{c,p}p37-* {c,p}p38-* {c,p}p39-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
CIBW_BEFORE_ALL_LINUX: yum install -y atlas-devel
CIBW_BEFORE_BUILD: python -m pip install -U pip && python -m pip install -r requirements.txt
CIBW_ARCHS: ${{ matrix.cibw_archs }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}
path: ./dist/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
needs: [auto-tag]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Switch to using Python 3.x
with:
python-version: 3.x
Expand All @@ -157,7 +158,7 @@ jobs:
cd ${GITHUB_WORKSPACE}
- name: Store source distribution
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*tar.gz
Expand All @@ -174,9 +175,9 @@ jobs:
needs: [build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Switch to using Python 3.x
with:
python-version: 3.x
Expand Down

0 comments on commit 0cdb994

Please sign in to comment.