Skip to content

Commit 0025805

Browse files
carlocabeli-schwartz
authored andcommitted
Prioritise Apple's toolchain in project-tests-appleclang
Using Homebrew Clang leads to failures when testing objfw. We probably want to ensure we use Apple Clang here given the workflow job name, in any case.
1 parent e9e5820 commit 0025805

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/macos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ jobs:
110110
# These cannot evaluate anything, so we cannot set PATH or SDKROOT here
111111
run: |
112112
export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
113-
export PATH="$HOME/tools:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/ncurses/bin:$PATH"
113+
# Append LLVM's bin directory to PATH to prioritise Apple Clang over Homebrew Clang.
114+
# We need this to avoid objfw test failures.
115+
export PATH="$HOME/tools:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/ncurses/bin:$PATH:/opt/homebrew/opt/llvm/bin"
114116
export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@5/lib/pkgconfig:/opt/homebrew/opt/lapack/lib/pkgconfig:/opt/homebrew/opt/ncurses/lib/pkgconfig:$PKG_CONFIG_PATH"
115117
./tools/run_with_cov.py ./run_project_tests.py --backend=ninja
116118

0 commit comments

Comments
 (0)