Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
CI: MacOS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
terryburton committed Aug 11, 2021
1 parent 520e0ca commit bf18ab5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/gs1encoders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions src/c-lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bf18ab5

Please sign in to comment.