Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into mcard2
Browse files Browse the repository at this point in the history
  • Loading branch information
cadmic committed Sep 19, 2024
2 parents 614f433 + 8d833dc commit 3279cd3
Show file tree
Hide file tree
Showing 5 changed files with 424 additions and 221 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check Format

on:
push:
pull_request:

jobs:
format:
runs-on: ubuntu-24.04
defaults:
run:
shell: bash

steps:
# Checkout the repository (shallow clone)
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

# Set Git config
- name: Git config
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

# Run formatter
- name: Run clang-format
run: ./format

# Cancel if there's a diff
- name: Check status
run: git diff --name-only --exit-code
Loading

0 comments on commit 3279cd3

Please sign in to comment.