File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- config : [default, llvm, gnu32]
14
+ config : [default, llvm, gnu32, sanitize ]
15
15
16
16
name : build • ${{ matrix.config }}
17
17
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ All CI is just bash and nix.
16
16
To run jobs locally:
17
17
18
18
``` bash
19
- CI_CONFIG=ci/configs/default.bash ci/scripts/run.sh
20
- CI_CONFIG=ci/configs/llvm.bash ci/scripts/run.sh
21
- CI_CONFIG=ci/configs/gnu32.bash ci/scripts/run.sh
19
+ CI_CONFIG=ci/configs/default.bash ci/scripts/run.sh
20
+ CI_CONFIG=ci/configs/llvm.bash ci/scripts/run.sh
21
+ CI_CONFIG=ci/configs/gnu32.bash ci/scripts/run.sh
22
+ CI_CONFIG=ci/configs/sanitize.bash ci/scripts/run.sh
22
23
```
23
24
24
25
By default CI jobs will reuse their build directories. ` CI_CLEAN=1 ` can be specified to delete them before running instead.
Original file line number Diff line number Diff line change
1
+ CI_DESC=" CI job running ThreadSanitizer"
2
+ CI_DIR=build-sanitize
3
+ export CXX=clang++
4
+ export CXXFLAGS=" -ggdb -Werror -Wall -Wextra -Wpedantic -Wthread-safety-analysis -Wno-unused-parameter -fsanitize=thread"
5
+ CMAKE_ARGS=()
6
+ BUILD_ARGS=(-k -j4)
7
+ BUILD_TARGETS=(mptest)
Original file line number Diff line number Diff line change @@ -11,9 +11,12 @@ set -o errexit -o nounset -o pipefail -o xtrace
11
11
[ " ${CI_CONFIG+x} " ] && source " $CI_CONFIG "
12
12
13
13
: " ${CI_DIR:= build} "
14
+ if ! [ -v BUILD_TARGETS ]; then
15
+ BUILD_TARGETS=(all tests mpexamples)
16
+ fi
14
17
15
18
[ -n " ${CI_CLEAN-} " ] && rm -rf " ${CI_DIR} "
16
19
17
20
cmake -B " $CI_DIR " " ${CMAKE_ARGS[@]+" ${CMAKE_ARGS[@]} " } "
18
- cmake --build " $CI_DIR " -t all tests mpexamples -- " ${BUILD_ARGS[@]+" ${BUILD_ARGS[@]} " } "
21
+ cmake --build " $CI_DIR " -t " ${BUILD_TARGETS[@]} " -- " ${BUILD_ARGS[@]+" ${BUILD_ARGS[@]} " } "
19
22
ctest --test-dir " $CI_DIR " --output-on-failure
You can’t perform that action at this time.
0 commit comments