From 33e5946f15c7fd68153f4fa9eb7c0dc3cd1b203f Mon Sep 17 00:00:00 2001 From: Tuomo Kriikkula Date: Wed, 4 Sep 2024 14:13:12 +0300 Subject: [PATCH] Use clang-format from PyPi on Windows CI builds --- .github/workflows/cmake-build.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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