Skip to content

Commit

Permalink
Add new macOS 14 M1 runner for arm wheels
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Paine <[email protected]>
  • Loading branch information
timkpaine committed Feb 3, 2024
1 parent e091520 commit 6da3434
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-caches/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runs:
echo "VCPKG_DOWNLOADS=$HOME/vcpkg_download_cache" >> $GITHUB_ENV
if: ${{ runner.os != 'Windows' }}

- name: Setup vcpkg cache (Linux)
- name: Setup vcpkg cache
uses: actions/cache@v4
with:
path: |
Expand Down
30 changes: 25 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ jobs:
os:
- ubuntu-22.04 # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
- macos-12 # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
- macos-14 # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
# - windows-2022 # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
# arm64 image
# - macos-13-xlarge # https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
python-version:
- "3.8"
- "3.9"
Expand Down Expand Up @@ -231,6 +230,15 @@ jobs:
- is-full-run: false
os: macos-12
python-version: "3.10"
- is-full-run: false
os: macos-14
python-version: "3.8"
- is-full-run: false
os: macos-14
python-version: "3.9"
- is-full-run: false
os: macos-14
python-version: "3.10"

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -267,12 +275,21 @@ jobs:

########
# Macos
- name: Python Build Steps (Macos)
- name: Python Build Steps (Macos x86)
run: make dist-py-cibw
env:
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
CIBW_ENVIRONMENT_MACOS: CC="/usr/local/bin/gcc-13" CXX="/usr/local/bin/g++-13" CCACHE_DIR="/Users/runner/work/csp/csp/.ccache" VCPKG_DEFAULT_BINARY_CACHE="${{ env.VCPKG_DEFAULT_BINARY_CACHE }}" VCPKG_DOWNLOADS="${{ env.VCPKG_DOWNLOADS }}"
if: ${{ runner.os == 'macOS' }}
CIBW_ARCHS_MACOS: x86_64
if: ${{ matrix.os == 'macos-12' }}

- name: Python Build Steps (arm)
run: make dist-py-cibw
env:
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
CIBW_ENVIRONMENT_MACOS: CC="/usr/local/bin/gcc-13" CXX="/usr/local/bin/g++-13" CCACHE_DIR="/Users/runner/work/csp/csp/.ccache" VCPKG_DEFAULT_BINARY_CACHE="${{ env.VCPKG_DEFAULT_BINARY_CACHE }}" VCPKG_DOWNLOADS="${{ env.VCPKG_DOWNLOADS }}"
CIBW_ARCHS_MACOS: arm64
if: ${{ matrix.os == 'macos-14' }}

##########
# Windows
Expand Down Expand Up @@ -363,8 +380,8 @@ jobs:
os:
- ubuntu-22.04
- macos-12
- macos-14
# - windows-2022
# - macos-13-xlarge # arm64 image
python-version:
- 3.8
- 3.9
Expand All @@ -384,6 +401,9 @@ jobs:
- is-full-run: false
os: macos-12

- is-full-run: false
os: macos-14

# Exclude Python 3.8, 3.10, 3.11 builds
- is-full-run: false
python-version: 3.8
Expand Down

0 comments on commit 6da3434

Please sign in to comment.