diff --git a/llvm-spirv/.github/workflows/check-code-style.yml b/llvm-spirv/.github/workflows/check-code-style.yml index dcb2dddea9c8a..b6ea4a6d25408 100644 --- a/llvm-spirv/.github/workflows/check-code-style.yml +++ b/llvm-spirv/.github/workflows/check-code-style.yml @@ -75,7 +75,8 @@ jobs: if: ${{ steps.gather-list-of-changes.outputs.HAS_CHANGES }} run: | mkdir build && cd build - cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ${{ github.workspace }} + cmake -DCMAKE_CXX_COMPILER=clang++-${{ env.LLVM_VERSION }} \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ${{ github.workspace }} - name: Run clang-format if: ${{ steps.gather-list-of-changes.outputs.HAS_CHANGES }}