Skip to content

Commit

Permalink
Misc. operability tweaks for clang-format (#5422)
Browse files Browse the repository at this point in the history
Found while debugging CI fails on #5421.

---
TYPE: NO_HISTORY

---------

Co-authored-by: Theodore Tsirpanis <[email protected]>
  • Loading branch information
johnkerl and teo-tsirpanis authored Jan 10, 2025
1 parent 1282910 commit 0aecf50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,5 @@ jobs:
printenv
shell: bash

- name: Check formatting (linux only)'
run: |
source $GITHUB_WORKSPACE/scripts/ci/check_formatting_linux.sh
shell: bash
if: ${{ runner.os == 'Linux' }}
- name: Check formatting
run: $GITHUB_WORKSPACE/scripts/ci/check_formatting_linux.sh
2 changes: 1 addition & 1 deletion scripts/ci/check_formatting_linux.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ set -e pipefail
ls -la
sudo ./scripts/install-clangformat.sh

src=$GITHUB_WORKSPACE
src=$(dirname $0)/../..
cd $src

$src/scripts/run-clang-format.sh $src clang-format-17 0
4 changes: 4 additions & 0 deletions scripts/install-clangformat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ install_clang_format() {

run() {
install_clang_format

echo
echo "clang-format --version" $(clang-format --version)
echo
}

run

0 comments on commit 0aecf50

Please sign in to comment.