Skip to content

Commit 09a8c47

Browse files
authored
using homebrew to install clang tools on mac runner (#244)
- manually symlink llvm binaries - continue despite homebrew error
1 parent 91cfe27 commit 09a8c47

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

action.yml

+9
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,15 @@ runs:
234234
fi
235235
fi
236236
237+
- name: Install MacOS clang dependencies
238+
if: runner.os == 'macOS'
239+
shell: bash
240+
continue-on-error: true
241+
run: |
242+
brew install llvm@${{ inputs.version }}
243+
ln -s "$(brew --prefix llvm@${{ inputs.version }})/bin/clang-format" "/usr/local/bin/clang-format-${{ inputs.version }}"
244+
ln -s "$(brew --prefix llvm@${{ inputs.version }})/bin/clang-tidy" "/usr/local/bin/clang-tidy-${{ inputs.version }}"
245+
237246
- name: Setup python venv (Unix)
238247
if: runner.os == 'Linux' || runner.os == 'macOS'
239248
shell: bash

0 commit comments

Comments
 (0)