From ed3de334bffee6f0c630c5724fb729179e0769b9 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Mon, 13 May 2024 18:51:45 -0300 Subject: [PATCH] ci: Fix deployment of GCC < 14 under macOS --- .github/workflows/build-pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 9ab7d372288..8878c160428 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -449,6 +449,7 @@ jobs: # from ../src/include/general.h:62, # from ../src/command.c:28: # /opt/homebrew/Cellar/gcc@11/11.4.0/lib/gcc/11/gcc/aarch64-apple-darwin23/11/include-fixed/AvailabilityInternal.h:162:10: fatal error: AvailabilityInternalLegacy.h: No such file or directory + # FIXME: remove the brew unlink step once `gcc` itself works - os: macos-latest fail-fast: false @@ -465,6 +466,7 @@ jobs: # Install a suitable system compiler for the build - name: Setup Homebrew GCC run: | + brew unlink gcc brew install ${{ matrix.compiler }} CC=${COMPILER/@/-} CXX=${CC/#gcc/g++}