Skip to content

Commit 0bcb572

Browse files
committed
use a specific path on windows
oops use a supported version
1 parent df8308f commit 0bcb572

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/cpp-lint-action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,27 @@ jobs:
4040
if: steps.cache-build.outputs.cache-hit != 'true'
4141
run: mkdir build && cmake -Bbuild src
4242

43+
- name: install custom clang version
44+
if: runner.os == 'Windows' && matrix.clang-version == '20'
45+
uses: KyleMayes/install-llvm-action@v2
46+
with:
47+
version: 21.1.8
48+
directory: ${{ runner.temp }}/llvm
49+
4350
- name: Run linter as action
4451
uses: cpp-linter/cpp-linter-action@fix-364
4552
id: linter
4653
env:
4754
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
llvm-dir: ${{ runner.temp }}/llvm
4856
with:
4957
style: file
5058
files-changed-only: false
5159
# to ignore all build folder contents
5260
ignore: build
5361
database: build
5462
verbosity: debug
55-
version: ${{ matrix.clang-version != '20' && matrix.clang-version || ''}}
63+
version: ${{ matrix.clang-version == '20' && runner.os == 'Windows' && env.llvm-dir || matrix.clang-version }}
5664
thread-comments: ${{ matrix.clang-version == '17' && 'update' }}
5765
file-annotations: ${{ matrix.clang-version == '17' }}
5866
extra-args: -std=c++14 -Wall

0 commit comments

Comments
 (0)