Skip to content

Commit

Permalink
Ran clang-format ci on Ubuntu (#2255)
Browse files Browse the repository at this point in the history
Back to running on Ubuntu, things seemed to have stabilized now and the Ubuntu runners are more available than macOS.
  • Loading branch information
externl authored May 31, 2024
1 parent 5dac6ba commit 155c362
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,11 @@ on:

jobs:
clang-format:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Clang Format
run: |
# Make sure we're using the latest Homebrew package list.
brew update
brew install clang-format
clang-format --version
if: runner.os == 'macOS'

- name: Install Clang Format
run: |
# This LLVM script will add the relevant LLVM PPA: https://apt.llvm.org/
Expand All @@ -36,5 +28,5 @@ jobs:

- name: Run Clang Format
run: |
find . -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.mm" | xargs clang-format --style=file --fallback-style=none --Werror --dry-run
find cpp -name "*.m" | xargs clang-format --style=file --fallback-style=none --Werror --dry-run
find . -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.mm" | xargs clang-format-18 --style=file --fallback-style=none --Werror --dry-run
find cpp -name "*.m" | xargs clang-format-18 --style=file --fallback-style=none --Werror --dry-run

0 comments on commit 155c362

Please sign in to comment.