From 80f206795a32d124e0d9f1cde44a0f746055e419 Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Mon, 20 Jan 2025 17:58:43 +0100 Subject: [PATCH] fix(IDX): use llvm-clang on Intel macOS This ensures that the x86-darwin builders use a working c compiler (llvm-clang) instead of Apple's, which causes build failures. --- .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 ae371889aee..3975d294313 100644 --- a/.github/workflows-source/ci-main.yml +++ b/.github/workflows-source/ci-main.yml @@ -190,6 +190,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" - <<: *docker-login - name: Run Bazel Test Darwin x86-64 id: bazel-test-darwin-x86-64 diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index e69dad8e241..d4b399bbe48 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -183,6 +183,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: Login to Dockerhub shell: bash run: ./ci/scripts/docker-login.sh