From 2b02e0a85360c88deeb7fa32c92e100699b0f80c Mon Sep 17 00:00:00 2001 From: chrysn Date: Sat, 26 Oct 2024 15:11:15 +0200 Subject: [PATCH] fix(CI): Provide CLANG_PATH to work around multitude of installed clangs --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1926b954d..e86794156 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,13 @@ jobs: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # clang-sys and thus bindgen is sensitive to multiple installed versions + # around, see eg. https://github.com/rust-lang/rust-bindgen/issues/2682 + # + # CLANG_PATH should be set to the most recent clang installed, no matter + # what /usr/bin/clang is, for some parts of the code will go for the + # newest standard library. + CLANG_PATH: /usr/bin/clang-15 strategy: fail-fast: false