GitHub Actions: add checks for tabs and trailing whitespace
@@ -3,6 +3,17 @@ name: CI
on: [push, pull_request]
jobs:
+ formatting:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
+ - name: Trailing whitespace
+ run: git diff --check HEAD^
+ - name: Tabs
+ run: find simde/ -name '*.c' -o -name '*.h' -exec grep -nP '\t' {} + && exit 1 || exit 0
+
x86:
runs-on: ubuntu-latest
strategy:
