Skip to content

Commit d19ad95

Browse files
committed
Run with sanitizers
1 parent c123828 commit d19ad95

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: heavy
12-
container: ghcr.io/xrplf/clio-ci:14342e087ceb8b593027198bf9ef06a43833c696
13-
1411
strategy:
1512
matrix:
16-
conan_profile: [gcc, clang]
13+
compiler: [gcc, clang]
14+
sanitizer_ext: [.asan, .tsan, .ubsan]
15+
build_type: [Release, Debug]
16+
os: [heavy, heavy-arm64]
17+
container: '{ "image": "ghcr.io/xrplf/clio-ci:14342e087ceb8b593027198bf9ef06a43833c696" }'
18+
19+
include:
20+
compiler: apple-clang
21+
sanitizer_ext: ""
1722
build_type: [Release, Debug]
23+
os: macos15
24+
25+
runs-on: ${{ matrix.os }}
26+
container: ${{ inputs.container != '' && fromJson(inputs.container) || null }}
1827

1928
env:
2029
BUILD_DIR: build
@@ -36,15 +45,14 @@ jobs:
3645

3746
- name: Run Conan
3847
env:
39-
CONAN_PROFILE: ${{ matrix.conan_profile }}
48+
CONAN_PROFILE: ${{ matrix.compiler }}${{ matrix.sanitizer_ext }}
4049
run: |
41-
conan \
42-
install . \
43-
-of "${BUILD_DIR}" \
44-
-b missing \
45-
-s "build_type=${BUILD_TYPE}" \
46-
-o "&:with_tests=True" \
47-
--profile:all "${CONAN_PROFILE}"
50+
conan install . \
51+
-of "${BUILD_DIR}" \
52+
-b missing \
53+
-s "build_type=${BUILD_TYPE}" \
54+
-o "&:with_tests=True" \
55+
--profile:all "${CONAN_PROFILE}"
4856
4957
- name: Run CMake
5058
run: |

0 commit comments

Comments
 (0)