From 3ce4e9b6e0da02dd893c884439b96e0dc3e0d49b Mon Sep 17 00:00:00 2001 From: scaramallion Date: Mon, 17 Jun 2024 11:11:09 +1000 Subject: [PATCH] Fix MacOS runners (#94) --- .github/workflows/release-wheels.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-wheels.yml b/.github/workflows/release-wheels.yml index 7b06cdf..c5354b0 100644 --- a/.github/workflows/release-wheels.yml +++ b/.github/workflows/release-wheels.yml @@ -114,20 +114,20 @@ jobs: python: 312 platform_id: manylinux_aarch64 - # MacOS x86_64 - - os: macos-latest + # MacOS 12 x86_64 + - os: macos-12 python: 38 platform_id: macosx_x86_64 - - os: macos-latest + - os: macos-12 python: 39 platform_id: macosx_x86_64 - - os: macos-latest + - os: macos-12 python: 310 platform_id: macosx_x86_64 - - os: macos-latest + - os: macos-12 python: 311 platform_id: macosx_x86_64 - - os: macos-latest + - os: macos-12 python: 312 platform_id: macosx_x86_64 @@ -178,19 +178,20 @@ jobs: fail-fast: false matrix: include: - - os: macos-latest + # MacOS 14 arm64 + - os: macos-14 python: 38 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 39 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 310 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 311 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 312 platform_id: macosx_arm64 @@ -219,8 +220,8 @@ jobs: # Update the wheel with the correct tag then remove the incorrect wheel - name: Fix poetry mistagging run: | - wheel tags --platform-tag macosx_12_0_arm64 ./dist/*-macosx_12_0_x86_64.whl - rm ./dist/*-macosx_12_0_x86_64.whl + wheel tags --platform-tag macosx_12_0_arm64 ./dist/*-macosx_14_0_x86_64.whl + rm ./dist/*-macosx_14_0_x86_64.whl - name: Store artifacts uses: actions/upload-artifact@v4