diff --git a/.github/workflows/gs1encoders.yml b/.github/workflows/gs1encoders.yml index b4ec2a0..4de242d 100644 --- a/.github/workflows/gs1encoders.yml +++ b/.github/workflows/gs1encoders.yml @@ -62,6 +62,23 @@ jobs: c-lib\build\console-app\Win32\Release\gs1encoders-app.exe --version dotnet-app\bin\Release\netcoreapp3.1\gs1encoders-dotnet-app.exe --version + ci-macos: + + runs-on: macos-10.15 + + steps: + + - uses: actions/checkout@v2 + + - name: clang CI + run: | + make -C src/c-lib -j `sysctl -n hw.logicalcpu` test SLOW_TESTS=yes + make -C src/c-lib -j `sysctl -n hw.logicalcpu` lib + make -C src/c-lib -j `sysctl -n hw.logicalcpu` app + DYLD_LIBRARY_PATH=src/c-lib/build src/c-lib/build/gs1encoders.bin --version + make -C src/c-lib -j `sysctl -n hw.logicalcpu` app-static + src/c-lib/build/gs1encoders-linux.bin --version + ci-scan-build: runs-on: ubuntu-latest diff --git a/src/c-lib/Makefile b/src/c-lib/Makefile index b6fefd0..aadcc89 100644 --- a/src/c-lib/Makefile +++ b/src/c-lib/Makefile @@ -49,13 +49,8 @@ endif ifeq ($(SANITIZE),yes) CC=clang SAN_LDFLAGS = -fuse-ld=lld -ifneq ($(shell uname -s),Darwin) SAN_CFLAGS = -fsanitize=address,leak,undefined$(FUZZER_SAN_OPT) -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1 SAN_ENV = ASAN_OPTIONS="symbolize=1 detect_leaks=1" LSAN_OPTIONS="fast_unwind_on_malloc=0:malloc_context_size=50" ASAN_SYMBOLIZER_PATH="$(shell which llvm-symbolizer)" -else -SAN_CFLAGS = -fsanitize=address,undefined$(FUZZER_SAN_OPT) -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1 -SAN_ENV = ASAN_OPTIONS="symbolize=1" LSAN_OPTIONS="fast_unwind_on_malloc=0:malloc_context_size=50" ASAN_SYMBOLIZER_PATH="$(shell which llvm-symbolizer)" -endif endif ifeq ($(SLOW_TESTS),yes)