From 885aab5eb99fb6a6e1034ad5fe2a96473ec61303 Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:29:23 +0200 Subject: [PATCH] Fix pythonpackage.yml failing on macos-13 --- .github/workflows/pythonpackage.yml | 6 +++++- .github/workflows/wheel.yml | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 3ebee992b..82757439a 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -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"} @@ -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 diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 7941e0122..27e8a32fe 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -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"