Skip to content

Commit

Permalink
Only check formatting on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaoliello committed Jul 19, 2023
1 parent ea8d806 commit dcbfade
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Check formatting
run: find . -iname '*.h' -o -iname '*.cpp' | xargs clang-format -Werror --dry-run --style=LLVM --verbose

- name: Setup LLVM (Linux)
if: ${{ runner.os == 'Linux' }}
run: |
Expand All @@ -39,6 +36,7 @@ jobs:
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 160
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 160
sudo update-alternatives --install /usr/bin/lli lli /usr/bin/lli-16 160
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-16 160
- name: Setup LLVM and GCC (MacOS)
if: ${{ runner.os == 'macOS' }}
Expand Down Expand Up @@ -71,6 +69,10 @@ jobs:
gcc --version
pytest -n 16
- name: Check formatting
if: ${{ runner.os == 'Linux' }}
run: find . -iname '*.h' -o -iname '*.cpp' | xargs clang-format -Werror --dry-run --style=LLVM --verbose

# The llvm-dev package doesn't exist for Windows, so we need to build LLVM ourselves.
build-windows:
runs-on: windows-latest
Expand Down

0 comments on commit dcbfade

Please sign in to comment.