Skip to content

Commit

Permalink
asdfasd
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Jul 27, 2024
1 parent ae044c2 commit c94aa67
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
- name: Check C++ code formatting with clang-format
id: check_cpp
continue-on-error: true
run: |
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-jammy-16.list
Expand All @@ -494,6 +495,19 @@ jobs:
sudo apt --yes install clang-format-16
find shared/libebm \( -iname "*.cpp" -o -iname "*.h" -o -iname "*.hpp" \) | xargs clang-format-16 -i -style=file
git diff --exit-code
- name: Mark step with a warning
if: ${{ steps.check_cpp.outcome == 'failure' }}
uses: actions/github-script@v6
with:
script: |
github.rest.checks.create({
owner: context.repo.owner,
repo: context.repo.repo,
name: 'Failed clang formatting check',
head_sha: context.sha,
status: 'completed',
conclusion: 'neutral'
})
format_black:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c94aa67

Please sign in to comment.