Add github action with basic CI that builds

Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
Daniel Lublin 2023-02-02 21:27:21 +01:00
parent b7d0698e1b
commit 9a6a790715
No known key found for this signature in database
GPG key ID: 75BD0FEB8D3E7830
6 changed files with 152 additions and 5 deletions

View file

@ -1,6 +1,9 @@
# Uses ../.clang-format
FMTFILES=main.c
.PHONY: fmt
fmt:
# Uses ../.clang-format
clang-format --dry-run --ferror-limit=0 $(FMTFILES)
clang-format --verbose -i $(FMTFILES)
.PHONY: checkfmt
checkfmt:
clang-format --dry-run --ferror-limit=0 --Werror $(FMTFILES)