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:
parent
4c758a62b1
commit
128b345b9a
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user