Skip to content
Open
Show file tree
Hide file tree
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
38 changes: 19 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:
fail-fast: false
matrix:
config:
- name: "linux aarch64 38"
os: ubuntu-latest
arch: aarch64
build: "cp38*"
pyversion: 38
- name: "linux aarch64 39"
os: ubuntu-latest
arch: aarch64
Expand Down Expand Up @@ -45,11 +40,11 @@ jobs:
arch: aarch64
build: "cp314*"
pyversion: 314
- name: "linux ppc64le 38"
- name: "linux aarch64 315"
os: ubuntu-latest
arch: ppc64le
build: "cp38*"
pyversion: 38
arch: aarch64
build: "cp315*"
pyversion: 315
- name: "linux ppc64le 39"
os: ubuntu-latest
arch: ppc64le
Expand Down Expand Up @@ -80,11 +75,11 @@ jobs:
arch: ppc64le
build: "cp314*"
pyversion: 314
- name: "linux s390x 38"
- name: "linux ppc64le 315"
os: ubuntu-latest
arch: s390x
build: "cp38*manylinux*"
pyversion: 38
arch: ppc64le
build: "cp315*"
pyversion: 315
- name: "linux s390x 39"
os: ubuntu-latest
arch: s390x
Expand Down Expand Up @@ -115,11 +110,11 @@ jobs:
arch: s390x
build: "cp314*manylinux*"
pyversion: 314
- name: "linux riscv64 38"
- name: "linux s390x 315"
os: ubuntu-latest
arch: riscv64
build: "cp38*"
pyversion: 38
arch: s390x
build: "cp315*manylinux*"
pyversion: 315
- name: "linux riscv64 39"
os: ubuntu-latest
arch: riscv64
Expand Down Expand Up @@ -150,6 +145,11 @@ jobs:
arch: riscv64
build: "cp314*"
pyversion: 314
- name: "linux riscv64 315"
os: ubuntu-latest
arch: riscv64
build: "cp315*"
pyversion: 315
- name: windoof
os: windows-latest
build: "*"
Expand All @@ -170,10 +170,10 @@ jobs:
platforms: ${{ matrix.config.arch }}

- name: Build wheels
uses: pypa/cibuildwheel@v3.4.1
uses: pypa/cibuildwheel@v4.1.0
env:
CIBW_BUILD: ${{ matrix.config.build }}
CIBW_SKIP: "pp*-win_amd64 pp39*linux* pp31?*linux_i686 pp*-mac* pp38-*linux*"
CIBW_SKIP: "pp*-win_amd64 pp39*linux* pp31?*linux_i686 pp*-mac*"
CIBW_ARCHS_LINUX: "${{ matrix.config.arch }}"
# CIBW_TEST_COMMAND: pip install pytest && pytest {package}
# with:
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/build.yml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
config:
EOF
for arch in aarch64 ppc64le s390x riscv64 ; do
for py in 38 39 310 311 312 313 314 ; do
for py in 39 310 311 312 313 314 315 ; do
build="cp${py}*"
test $arch = s390x && build="cp$py*manylinux*"
cat <<EOF
Expand All @@ -37,28 +37,27 @@ cat <<'EOF'
build: "*"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up QEMU
if: ${{ contains(matrix.config.name, 'linux') }}
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4
with:
platforms: ${{ matrix.config.arch }}

- name: Build wheels
uses: pypa/cibuildwheel@v3.1.4
uses: pypa/cibuildwheel@v4.1.0
env:
CIBW_BUILD: ${{ matrix.config.build }}
CIBW_SKIP: "pp*-win_amd64 pp39*linux* pp31?*linux_i686 pp*-mac* pp38-*linux*"
CIBW_SKIP: "pp*-win_amd64 pp39*linux* pp31?*linux_i686 pp*-mac*"
CIBW_ARCHS_LINUX: "${{ matrix.config.arch }}"
CIBW_ENABLE: cpython-freethreading
# CIBW_TEST_COMMAND: pip install pytest && pytest {package}
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: "{package}/pyproject.toml"

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: "dist-${{ matrix.config.os }}-${{ matrix.config.arch }}-${{ matrix.config.pyversion }}"
path: ./wheelhouse/*.whl
Expand All @@ -68,15 +67,15 @@ cat <<'EOF'
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 100 # Optional, use if you use setuptools_scm
submodules: true # Optional, use if you have submodules

- name: Build SDist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: dist-sdist
path: dist/*.tar.gz
Expand All @@ -90,7 +89,7 @@ cat <<'EOF'
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
path: dist
pattern: dist-*
Expand Down
Loading