diff --git a/.github/workflows/cmake-build.yaml b/.github/workflows/cmake-build.yaml index d77aa6c..29e5216 100644 --- a/.github/workflows/cmake-build.yaml +++ b/.github/workflows/cmake-build.yaml @@ -108,9 +108,20 @@ jobs: run: gcc --version if: matrix.os == 'ubuntu-24.04' + # Install clang-format from PyPi on Windows. + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' + if: matrix.os == 'windows-latest' + + - name: Install clang-format from PyPi on Windows + run: pip install clang-format + if: matrix.os == 'windows-latest' + - name: Print clang-format version run: clang-format --version - if: matrix.os == 'ubuntu-24.04' - name: Setup MSVC uses: ilammy/msvc-dev-cmd@v1