Skip to content

Commit

Permalink
Attempt to run sanitiser test on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 committed Mar 5, 2024
1 parent a6352db commit f06d4d7
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
sanitizers:
sanitizers-amd64:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -56,6 +56,47 @@ jobs:
run: ASAN_OPTIONS="verbosity=1 fast_unwind_on_malloc=0 detect_leaks=1" make validate
working-directory: Debug

sanitizers-arm64:
runs-on: arm-4core-linux
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
run: |
sudo apt update
sudo apt install cmake gcc-12 g++-12 git make curl
- name: Create directories
run: mkdir Debug

- name: CMake
env:
CC: gcc-12
CXX: g++-12
run: |
cmake .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS="-fsanitize=address,leak,undefined -DASAN_BUILD" \
-DCMAKE_C_FLAGS="-fsanitize=address,leak,undefined -DASAN_BUILD" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,leak,undefined" \
-DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address,leak,undefined" \
-DLIBDDWAF_VECTORIZED_TRANSFORMERS=OFF
working-directory: Debug

- name: Build
run: VERBOSE=1 make -j $(nproc) waf_test waf_validator
working-directory: Debug

- name: Test
run: ASAN_OPTIONS="verbosity=1 fast_unwind_on_malloc=0 detect_leaks=1" make test
working-directory: Debug

- name: Validate
run: ASAN_OPTIONS="verbosity=1 fast_unwind_on_malloc=0 detect_leaks=1" make validate
working-directory: Debug


valgrind:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit f06d4d7

Please sign in to comment.