From b6264724c6c1e6c9fbb71c6711255a6a961b1003 Mon Sep 17 00:00:00 2001 From: alaviss Date: Tue, 10 Dec 2024 14:30:50 -0600 Subject: [PATCH] ci: update x86 macOS to version 13 (#1474) ## Summary macOS-12 has been deprecated by GHA and runners requesting those images no longer run. As such, upgrade our macOS 12 runners to 13. ## Details * Starting from macOS-13, binaries no longer have default `/usr/local/lib` fallback search path. As such, the brew prefix now has to be installed as `DYLD_FALLBACK_LIBRARY_PATH` for both ARM and x86 runners. * There are compatibility issues with OpenSSL 3.4.0 installed within the current macOS images, as such this PR pin version 3.0 instead. --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95d8e6d2ae..4f9aebd8e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,7 +83,7 @@ jobs: }, { "name": "macOS", - "runner": "macos-12" + "runner": "macos-13" }, { "name": "macOS (M1)", @@ -221,9 +221,14 @@ jobs: run: | brew update - - name: Add Homebrew libraries to search path (macOS M1) - if: runner.os == 'macOS' && runner.arch == 'ARM64' - run: echo "DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib" >> "$GITHUB_ENV" + # Downgrade to OpenSSL 3.0 + brew unlink openssl + brew install openssl@3.0 + brew link --overwrite openssl@3.0 + + - name: Add Homebrew libraries to search path + if: runner.os == 'macOS' + run: echo "DYLD_FALLBACK_LIBRARY_PATH=$(brew --prefix)/lib" >> "$GITHUB_ENV" - name: Install MinGW (Windows) if: runner.os == 'Windows'