File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed
Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 1818 run : make example
1919 - name : Check dirty single-header
2020 run : git diff --exit-code ffc.h
21-
22- sanitize :
23- runs-on : ubuntu-latest
24-
25- steps :
26- - uses : actions/checkout@v4
27- - name : Install dependencies
28- run : sudo apt-get update && sudo apt-get install -y clang gcc make python3
29- - name : make sanitize
30- run : make sanitize
Original file line number Diff line number Diff line change 1- .PHONY : test sanitize example
1+ .PHONY : test example
22
33# Detect linux and define _DEFAULT_SOURCE if so
44UNAME_S := $(shell uname -s)
@@ -7,7 +7,6 @@ ifeq ($(UNAME_S),Linux)
77endif
88
99CLANG_FLAGS := -xc -Wall -Wextra -Wpedantic -O3 -g -std=c99 $(EXTRA_CFLAGS )
10- SANITIZE_FLAGS := -xc -Wall -Wextra -Wpedantic -O1 -g -std=c99 -fno-omit-frame-pointer -fsanitize=address,undefined $(EXTRA_CFLAGS )
1110
1211out/test_runner : ffc.h test_src/test.c | out
1312 gcc -xc -Wall -Wextra -Wpedantic ffc.h -fsyntax-only
@@ -17,19 +16,9 @@ test: out/test_runner out/test_int_runner
1716 ./out/test_runner
1817 ./out/test_int_runner
1918
20- sanitize : out/test_runner_sanitize out/test_int_runner_sanitize
21- ./out/test_runner_sanitize
22- ./out/test_int_runner_sanitize
23-
2419out/test_int_runner : ffc.h test_src/test_int.c | out
2520 clang $(CLANG_FLAGS ) -I. -Itest_src test_src/test_int.c -o out/test_int_runner -lm
2621
27- out/test_runner_sanitize : ffc.h test_src/test.c | out
28- clang $(SANITIZE_FLAGS ) -I. -Itest_src test_src/test.c -o out/test_runner_sanitize -lm
29-
30- out/test_int_runner_sanitize : ffc.h test_src/test_int.c | out
31- clang $(SANITIZE_FLAGS ) -I. -Itest_src test_src/test_int.c -o out/test_int_runner_sanitize -lm
32-
3322ffc.h : src/ffc.h src/common.h src/parse.h src/digit_comparison.h src/api.h src/bigint.h amalgamate.py
3423 python3 amalgamate.py > ffc.h
3524
You can’t perform that action at this time.
0 commit comments