Skip to content

Separate fork_exec for *nix and Windows #40

Separate fork_exec for *nix and Windows

Separate fork_exec for *nix and Windows #40

Workflow file for this run

name: Clang Format Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clang
run: |
sudo apt-get install -y clang-format-12
clang-format -i -fallback-style=none $(git ls-files | grep '\.\(c\|h\)$')
- name: Check
# Build your program with the given configuration
run: |
dirty=$(git ls-files --modified)
set +x
if [[ $dirty ]]; then
git diff
echo "Error: File(s) are not properly formatted."
echo "$dirty"
exit 1
fi