Skip to content

Commit

Permalink
ci(gh-actions): include macos-14 in python wheel workflow (rebased)
Browse files Browse the repository at this point in the history
  • Loading branch information
musicEnfanthen committed May 7, 2024
1 parent d7e0d9c commit a6355f4
Showing 1 changed file with 18 additions and 29 deletions.
47 changes: 18 additions & 29 deletions .github/workflows/python-ci-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,16 @@ jobs:
fail-fast: false
# Build the wheels for Linux, Windows and macOS
matrix:
os: [macos-13, windows-latest, ubuntu-latest]
os: [macos-13, macos-14, windows-latest, ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
architecture: [x86, x64]
architecture: [x86, x64, arm64]
include:
- os: macos-13
architecture: x64
platform_id: macosx_*
# - os: macos-14
# architecture: arm64
# platform_id: macosx_*
# python-version: "3.10"
# - os: macos-14
# architecture: arm64
# platform_id: macosx_*
# python-version: "3.11"
# - os: macos-14
# architecture: arm64
# platform_id: macosx_*
# python-version: "3.12"
platform_id: macosx_x86_64
- os: macos-14
architecture: arm64
platform_id: macosx_arm64
- os: windows-latest
architecture: x64
platform_id: win_amd64
Expand All @@ -54,18 +45,18 @@ jobs:
exclude:
- os: macos-13
architecture: x86
- os: macos-13
architecture: arm64
- os: macos-14
architecture: x86
- os: macos-14
architecture: x64
- os: ubuntu-latest
architecture: x86
# - os: macos-14
# architecture: "x86"
# - os: macos-14
# architecture: "x64"
# - os: macos-14
# python-version: "3.8"
# - os: macos-14
# python-version: "3.9"
# - os: macos-14
# python-version: "3.10"
- os: ubuntu-latest
architecture: arm64
- os: windows-latest
architecture: arm64

steps:
#===============================================#
Expand Down Expand Up @@ -109,12 +100,10 @@ jobs:
with:
output-dir: wheelhouse
env:
CIBW_SKIP: cp37-macosx_arm64
CIBW_BUILD: ${{ env.CIBW_BUILD_IDENTIFIER }}
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ENVIRONMENT_MACOS:
MACOSX_DEPLOYMENT_TARGET=10.15
# CIBW_TEST_SKIP: cp*-macosx_arm64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
CIBW_BEFORE_ALL_MACOS: brew update && brew install swig
Expand Down Expand Up @@ -142,7 +131,7 @@ jobs:
- name: Install from wheel on macOS
working-directory: wheelhouse
if: always() && runner.os == 'macOS'
run: python -m pip install ./*x86_64.whl
run: python -m pip install ./*.whl

# Wildcard use is different with PowerShell
# cf. https://stackoverflow.com/a/43900040
Expand All @@ -159,7 +148,7 @@ jobs:
# Upload artifacts
- uses: actions/upload-artifact@v3
with:
name: cibuildwheel-${{ runner.os }}-python-${{ matrix.python-version }}
name: cibuildwheel-${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.architecture }}
path: ./wheelhouse/*.whl

#===============================================#
Expand Down

0 comments on commit a6355f4

Please sign in to comment.