Skip to content

Commit c4e7d41

Browse files
ASAN on Ubuntu (#543)
Signed-off-by: Alexey Chernyshov <[email protected]>
1 parent da2cabd commit c4e7d41

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/asan.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: macOS-latest
13+
runs-on: ubuntu-20.04
1414
steps:
1515
- uses: actions/checkout@v2
1616
name: checkout repo
@@ -30,17 +30,17 @@ jobs:
3030
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
3131
- name: install
3232
run: |
33-
echo "LIBRARY_PATH=$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib" >> $GITHUB_ENV
34-
brew install ninja llvm pkg-config libb2 hwloc
33+
sudo apt-get update
34+
sudo apt-get install -y ninja-build python-setuptools pkg-config ocl-icd-* opencl-headers libhwloc-dev
3535
sudo python3 -m pip install --upgrade pip
3636
sudo python3 -m pip install scikit-build cmake requests gitpython gcovr pyyaml
3737
- name: cmake
3838
env:
39+
CC: "clang"
40+
CXX: "clang++"
3941
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # has to be included to access other secrets
4042
GITHUB_HUNTER_USERNAME: ${{ secrets.HUNTER_USERNAME }}
4143
GITHUB_HUNTER_TOKEN: ${{ secrets.HUNTER_TOKEN }}
42-
CFLAGS: "-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
43-
CXXFLAGS: "-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
4444
run: cmake . -GNinja -Bbuild -D ASAN=ON -D TESTING_PROOFS=ON -D TESTING_ACTORS=ON
4545
- name: build
4646
run: cmake --build build -- -j2
@@ -49,5 +49,5 @@ jobs:
4949
CTEST_OUTPUT_ON_FAILURE: 1
5050
# ASAN container overflow detection is disabled because of false-positives.
5151
# (https://github.com/google/sanitizers/wiki/AddressSanitizerContainerOverflow#false-positives)
52-
ASAN_OPTIONS: "halt_on_error=0: detect_container_overflow=0"
52+
ASAN_OPTIONS: "halt_on_error=1: detect_container_overflow=0"
5353
run: cmake --build build --target test

0 commit comments

Comments
 (0)