1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00

[Mach-O] Enable ASan, UBSan and TSan on GitHub Actions

This commit is contained in:
Rui Ueyama 2022-05-08 20:21:02 +08:00
parent 4c758a62b1
commit 128b345b9a

View File

@ -49,12 +49,16 @@ jobs:
run: PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" make -j$(nproc) CC=gcc CXX=g++
build-macos:
strategy:
matrix:
flags:
- ''
- 'CXXFLAGS="-fsanitize=address -fsanitize=undefined -g -Og" LDFLAGS="-fsanitize=address -fsanitize=undefined" USE_MIMALLOC=0'
- 'CXXFLAGS="-fsanitize=thread -g -Og" LDFLAGS="-fsanitize=thread" USE_MIMALLOC=0'
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: make
run: PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" make -j$(sysctl -n hw.logicalcpu)
- name: make test
run: PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" make -j$(sysctl -n hw.logicalcpu) test
run: PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" make -j$(sysctl -n hw.logicalcpu) ${{ matrix.flags }} test