Skip to content

Commit

Permalink
Use clang-format from PyPi on Windows CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Sep 4, 2024
1 parent 0efe607 commit 33e5946
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/cmake-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33e5946

Please sign in to comment.