From 09a8c476c173af944a6ae735d448dd67dc5c0f0e Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Wed, 5 Jun 2024 20:35:32 -0700 Subject: [PATCH] using homebrew to install clang tools on mac runner (#244) - manually symlink llvm binaries - continue despite homebrew error --- action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yml b/action.yml index 03dfff3..9590cba 100644 --- a/action.yml +++ b/action.yml @@ -234,6 +234,15 @@ runs: fi fi + - name: Install MacOS clang dependencies + if: runner.os == 'macOS' + shell: bash + continue-on-error: true + run: | + brew install llvm@${{ inputs.version }} + ln -s "$(brew --prefix llvm@${{ inputs.version }})/bin/clang-format" "/usr/local/bin/clang-format-${{ inputs.version }}" + ln -s "$(brew --prefix llvm@${{ inputs.version }})/bin/clang-tidy" "/usr/local/bin/clang-tidy-${{ inputs.version }}" + - name: Setup python venv (Unix) if: runner.os == 'Linux' || runner.os == 'macOS' shell: bash