From 8385d855bf3e27a4607bcf4b578ef2ad1ea10a39 Mon Sep 17 00:00:00 2001 From: Julie Schwartz Date: Sun, 3 Nov 2024 06:53:07 +1300 Subject: [PATCH 1/2] GitHub CI: Workaround an issue on GitHub's macos runners --- .github/workflows/install_dependencies_doc_macos.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/install_dependencies_doc_macos.sh b/.github/workflows/install_dependencies_doc_macos.sh index 9f33ea5..0dd7545 100755 --- a/.github/workflows/install_dependencies_doc_macos.sh +++ b/.github/workflows/install_dependencies_doc_macos.sh @@ -1,3 +1,15 @@ #!/usr/bin/env bash +brew update + +# The install of 'texlive' may cause the install of a newer version of +# 'python', which could fail because it cannot overwrite links for +# older versions, due to an issue with the GitHub runner images: +# https://github.com/actions/runner-images/issues/9966 +# To avoid that, we unlink and install with overwrite: +# +for python_package in $(brew list | grep python@); do + brew unlink ${python_package} && brew link --overwrite ${python_package} +done + brew install texlive From cfecf31cf2fd4b4dc0827e1a8c0bf7b573107afc Mon Sep 17 00:00:00 2001 From: Julie Schwartz Date: Sun, 3 Nov 2024 06:54:40 +1300 Subject: [PATCH 2/2] GitHub CI: Remove macos-12, add macos-15 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ef6e75..ba9cdeb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: build-macOS: strategy: matrix: - os: [ macos-12, macos-13, macos-14 ] + os: [ macos-13, macos-14, macos-15 ] fail-fast: false name: "Build ${{ matrix.os }}" runs-on: ${{ matrix. os }} @@ -86,7 +86,7 @@ jobs: build-doc-macOS: strategy: matrix: - os: [ macos-12, macos-13, macos-14 ] + os: [ macos-13, macos-14, macos-15 ] fail-fast: false name: "Build doc: ${{ matrix.os }}" runs-on: ${{ matrix.os }} @@ -213,7 +213,7 @@ jobs: test-macOS: strategy: matrix: - os: [ macos-12, macos-13, macos-14 ] + os: [ macos-13, macos-14, macos-15 ] fail-fast: false name: "Test ${{ matrix.os }}" runs-on: ${{ matrix. os }}