Skip to content

Commit

Permalink
single arch, multi python
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm committed Jan 25, 2025
1 parent a343172 commit c9974d7
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,41 @@ jobs:
path: dist/

build_wheels:
name: Build wheel for py${{ matrix.python-version }} ${{ matrix.os.platform_id }}
name: Build wheel for ${{ matrix.os.platform_id }} ${{ matrix.os.arch }}
runs-on: ${{ matrix.os.name }}

strategy:
# Ensure that a wheel builder finishes even if another fails
# list of github vm: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
# python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.11"]

os:
- name: "ubuntu-latest"
platform: "linux"
arch: "x86_64"
platform_id: "manylinux_x86_64"

- name: "macos-13"
platform: "macos"
min_macos_version: "13"
platform_id: "macosx_x86_64"
- name: "ubuntu-latest"
platform: "linux"
arch: "aarch64"
platform_id: "manylinux_x86_64"

- name: "macos-14"
platform: "macos"
min_macos_version: "14"
platform_id: "macosx_arm64"
# - name: "macos-13"
# platform: "macos"
# min_macos_version: "13"
# platform_id: "macosx_x86_64"

- name: "windows-latest"
platform: "windows"
platform_id: "win_amd64"
# - name: "macos-14"
# platform: "macos"
# min_macos_version: "14"
# platform_id: "macosx_arm64"

# - name: "windows-latest"
# platform: "windows"
# platform_id: "win_amd64"

steps:
- name: Checkout
Expand Down Expand Up @@ -211,10 +218,10 @@ jobs:
if: matrix.os.name == 'ubuntu-latest'
env:
# CIBW_BUILD: ${{ env.python_cp_version }}-${{ matrix.os.platform_id }}
CIBW_ARCHS: auto x86_64 aarch64
CIBW_ARCHS: "${{ matrix.os.arch }}"
CIBW_PLATFORM: linux
CIBW_SKIP: "pp* *musllinux_* *_i686* *_s390* *pypy*"
CIBW_PROJECT_REQUIRES_PYTHON: "~=${{ matrix.python-version }}.0"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9.0"
CIBW_BUILD_VERBOSITY: 3
BUILD_THREADS: "8"
run: |
Expand Down

0 comments on commit c9974d7

Please sign in to comment.