Skip to content

Commit

Permalink
testing...
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlion committed Jun 3, 2024
1 parent 8896f4b commit 3663472
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,24 @@ jobs:
if: "${{ matrix.os == 'macos-latest' }}"
run: |
brew update
brew install llvm
brew install llvm@18
sudo ln -s /usr/bin/clang-format /usr/local/bin/clang-format-18
sudo ln -s /usr/bin/clang-tidy /usr/local/bin/clang-tidy-18
- name: "testing..."
run: |
echo "$(which clang)"
clang --version
echo "$(which clang++)"
clang++ --version
echo "$(which clang-format)"
clang-format --version
- name: "Linux: install clang/llvm"
if: "${{ matrix.os == 'ubuntu-latest' }}"
run: |
curl --proto '=https' --tlsv1.2 -sSf https://apt.llvm.org/llvm.sh | sudo bash -s --
sudo apt install -y clang-format clang-tidy
curl --proto '=https' --tlsv1.2 -sSf https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
sudo apt install -y clang-format-18 clang-tidy-18
- name: "Build for compile commands.json"
run: |
Expand All @@ -59,8 +70,8 @@ jobs:
- name: "Clang format"
run: |
find cpp/src -type f | xargs clang-format -i
find cpp/src -type f | xargs clang-format-18 -i
- name: "Clang tidy"
run: |
find cpp/src -type f | xargs clang-tidy
find cpp/src -type f | xargs clang-tidy-18

0 comments on commit 3663472

Please sign in to comment.