Skip to content

Commit

Permalink
using homebrew to install clang tools on mac runner (#244)
Browse files Browse the repository at this point in the history
- manually symlink llvm binaries
- continue despite homebrew error
  • Loading branch information
2bndy5 authored Jun 6, 2024
1 parent 91cfe27 commit 09a8c47
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 09a8c47

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format reports: 2 file(s) not formatted
  • docs/examples/demo/demo.cpp
  • docs/examples/demo/demo.hpp
clang-tidy reports: 7 concern(s)

Have any feedback or feature suggestions? Share it here.

Please sign in to comment.