From 91e41832c4ae5ce43471f8a8f874d67e1de3fc66 Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Mon, 20 Jan 2025 19:43:37 +0100 Subject: [PATCH] fix(IDX): use llvm-clang on Intel macOS (#3530) This ensures that the x86-darwin builders use a working c compiler (llvm-clang) instead of Apple's, which causes build failures. Co-authored-by: Bas van Dijk --- .github/workflows-source/ci-main.yml | 2 ++ .github/workflows/ci-main.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows-source/ci-main.yml b/.github/workflows-source/ci-main.yml index 930883dc872..eb04739f9a3 100644 --- a/.github/workflows-source/ci-main.yml +++ b/.github/workflows-source/ci-main.yml @@ -189,6 +189,8 @@ jobs: run: | echo "/usr/local/bin" >> $GITHUB_PATH echo "$HOME/.cargo/bin:" >> $GITHUB_PATH + # use llvm-clang instead of apple's + echo "CC=/usr/local/opt/llvm/bin/clang" >> "$GITHUB_ENV" - name: Run Bazel Test Darwin x86-64 id: bazel-test-darwin-x86-64 uses: ./.github/actions/bazel-test-all/ diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 8088fb0c9b7..e58caf8259c 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -181,6 +181,8 @@ jobs: run: | echo "/usr/local/bin" >> $GITHUB_PATH echo "$HOME/.cargo/bin:" >> $GITHUB_PATH + # use llvm-clang instead of apple's + echo "CC=/usr/local/opt/llvm/bin/clang" >> "$GITHUB_ENV" - name: Run Bazel Test Darwin x86-64 id: bazel-test-darwin-x86-64 uses: ./.github/actions/bazel-test-all/