Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
push:
branches:
- main
- main
- py2-legacy
tags:
- "*.*.*"

Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
if: matrix.use_qemu && fromJSON(env.USE_QEMU)

- name: Build wheels
uses: pypa/[email protected].0
uses: pypa/[email protected]
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
env:
CIBW_ARCHS: "${{ matrix.arch }}"
Expand All @@ -121,7 +121,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
with:
name: Wheel-${{ runner.os }}-${{ matrix.build }}${{ matrix.arch }}
name: cibw-${{ runner.os }}-${{ matrix.build }}${{ matrix.arch }}
path: ./wheelhouse/*.whl

build_manylinux2010_wheels:
Expand All @@ -141,7 +141,7 @@ jobs:
fetch-depth: 0 # required for versioneer to find tags

- name: Build wheels
uses: pypa/[email protected].0
uses: pypa/[email protected]
env:
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_BUILD: "cp39-manylinux_*"
Expand All @@ -150,7 +150,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: Wheel-manylinux2010-${{ matrix.arch }}
name: cibw-manylinux2010-${{ matrix.arch }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -167,7 +167,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: SDist
name: cibw-sdist
path: dist/*.tar.gz

test_sdist:
Expand All @@ -194,7 +194,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: SDist
name: cibw-sdist
path: dist

- name: Install SDist
Expand All @@ -215,9 +215,11 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
path: all
pattern: cibw-*
merge-multiple: true
path: dist

- run: pipx run twine check --strict all/*/*
- run: pipx run twine check --strict dist/*

upload_pypi:
name: Upload to PyPI
Expand All @@ -232,11 +234,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
path: all

- name: Merge files
run: |
mkdir dist
mv all/*/* dist/.
pattern: cibw-*
merge-multiple: true
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1