-
Notifications
You must be signed in to change notification settings - Fork 40
52 lines (48 loc) · 1.61 KB
/
asan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: AddressSanitizer
on:
push:
branches:
- master
- 'releases/**'
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
test_with_sanitizers:
strategy:
fail-fast: false
matrix:
#os: [windows-latest, ubuntu-latest, macos-13]
os: [ubuntu-latest, macos-13] # Temporarily remove windows asan
preset: [vcpkg-asan-debug, vcpkg-ubsan-debug]
exclude:
# UBSan not supported by MSVC on Windows
- { os: windows-latest, preset: vcpkg-ubsan-debug }
runs-on: ${{ matrix.os }}
name: asan.${{ startsWith(matrix.os, 'macos') && 'macos-latest' || matrix.os }}.${{ matrix.preset }}
env:
UBSAN_OPTIONS: "print_stacktrace=1"
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: git -C ${{ github.workspace }}/ext_libs/vcpkg fetch --unshallow
- name: Setup MSVC Developer Command Prompt
if: ${{ startsWith(matrix.os, 'windows') }}
uses: ilammy/msvc-dev-cmd@v1
- uses: lukka/get-cmake@latest
- uses: lukka/run-vcpkg@v10
with:
vcpkgDirectory: '${{ github.workspace }}/ext_libs/vcpkg'
vcpkgJsonGlob: "${{ github.workspace }}/vcpkg.json"
- name: Configure
run: cmake --preset ${{ matrix.preset }} -DRL_BUILD_EXTERNAL_PARSER=On
- name: Build
run: cmake --build build --target rltest binary_parser_unit_tests
- name: Run unit tests
run: |
cd build
ctest --verbose --output-on-failure