Skip to content

Commit

Permalink
Fix pythonpackage.yml failing on macos-13
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Sep 11, 2024
1 parent e3e1842 commit 885aab5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
exclude:
- {os: windows-latest, python-version: "3.8"}
Expand Down Expand Up @@ -56,6 +56,10 @@ jobs:
if: startswith(matrix.os, 'macos')
run: brew install libomp

- name: Switch to older Xcode (Mac-only)
if: startswith(matrix.os, 'macos')
run: sudo xcode-select -s "/Applications/Xcode_15.0.1.app"

- name: Copy dll (Windows-only)
if: (matrix.os == 'windows-latest')
uses: ./ci/actions/windll
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ jobs:
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3

- name: Switch to older Xcode
# xcode 15.2 throws compilation errors
# select older xcode from the available versions on the runner ref https://github.com/actions/runner-images/blob/ff9acc6/images/macos/macos-13-Readme.md#xcode
- name: Switch to older Xcode (Mac-only)
if: startswith(matrix.os, 'macos')
run: sudo xcode-select -s "/Applications/Xcode_15.0.1.app"

Expand Down

0 comments on commit 885aab5

Please sign in to comment.