Skip to content

Commit 33eb8d3

Browse files
committed
Skip oclint installation on macOS due to dylib loading issue
The current oclint homebrew formula (24.11) has a hardcoded path to libc++.1.dylib that doesn't exist on GitHub runners or most systems. Error: Library not loaded: @rpath/libc++.1.dylib Referenced from: /opt/homebrew/Caskroom/oclint/24.11/oclint-24.11/bin/oclint-24.11 Reason: tried: '/Users/lqi/Workspaces/ryuichis/Labs/oclint/build/llvm-install/lib/libc++.1.dylib' (no such file) Skip oclint installation and version check on macOS until this is fixed upstream. Tests that require oclint will be skipped on macOS.
1 parent e7978c1 commit 33eb8d3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/gh_actions_macos.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ jobs:
88
uses: actions/checkout@v4
99
- name: Add llvm utils clang-format and clang-tidy to path
1010
run: echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
11-
- name: Install 4 hooks, python3, llvm 12.0.1 already installed which includes clang-tidy, clang-format
12-
run: brew install uncrustify cppcheck oclint iwyu
11+
- name: Install 4 hooks, python3, llvm already includes clang-tidy, clang-format
12+
run: brew install uncrustify cppcheck iwyu
13+
# Note: oclint skipped due to dylib loading issue in homebrew formula
1314
- name: Install pip dependencies
1415
run: pip3 install --break-system-packages cpplint pytest pre-commit
1516
- name: Install hooks locally
@@ -21,7 +22,7 @@ jobs:
2122
cppcheck --version
2223
cpplint --version
2324
include-what-you-use --version
24-
oclint --version
25+
# oclint --version skipped (broken dylib path in homebrew formula)
2526
- name: Get python library versions
2627
run: |
2728
pytest --version

0 commit comments

Comments
 (0)