Skip to content

Commit bb8ae72

Browse files
committed
Add tsan build
1 parent 41b7599 commit bb8ae72

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
include:
1515
- os: "ubuntu-22.04"
1616
shell: "bash"
17+
- os: "ubuntu-22.04"
18+
shell: "bash"
19+
BUILD_TAG: "_tsan"
1720
- os: "ubuntu-22.04-arm"
1821
shell: "bash"
1922
- os: "macos-13"
@@ -26,14 +29,16 @@ jobs:
2629
run:
2730
shell: ${{ matrix.shell }}
2831
steps:
29-
- uses: spatial-model-editor/setup-ci@2025.10.06
32+
- uses: spatial-model-editor/setup-ci@2025.10.15
3033
with:
31-
sme_deps_common: "2025.10.06"
34+
sme_deps_common: "2025.10.15"
35+
build_tag: ${{ matrix.BUILD_TAG }}
36+
cache_id: ${{ matrix.BUILD_TAG }}
3237
- uses: actions/checkout@v4
3338
- run: ./build.sh
3439
- uses: actions/upload-artifact@v4
3540
with:
36-
name: artifacts-${{ matrix.os }}
41+
name: artifacts-${{ matrix.os }}${{ matrix.BUILD_TAG }}
3742
path: ./artefacts/*
3843
retention-days: 3
3944
release:

build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ if [[ $MSYSTEM ]]; then
3232
# https://stackoverflow.com/questions/16596876/object-file-has-too-many-sections
3333
export CMAKE_CXX_FLAGS='"-fvisibility=hidden -Wa,-mbig-obj -D_GLIBCXX_USE_TBB_PAR_BACKEND=0 -DNDEBUG"'
3434
fi
35+
if [[ $BUILD_TAG == "_tsan" ]]; then
36+
export CMAKE_CXX_FLAGS='"-fvisibility=hidden -fsanitize=thread -fno-omit-frame-pointer"'
37+
fi
3538

3639
# clone dune-copasi
3740
git clone -b ${DUNE_COPASI_VERSION} --depth 1 https://gitlab.dune-project.org/copasi/dune-copasi.git
@@ -65,4 +68,4 @@ cat ${INSTALL_PREFIX}/share/dune/cmake/modules/DunePythonCommonMacros.cmake
6568
ls ${INSTALL_PREFIX}
6669
mkdir artefacts
6770
cd artefacts
68-
tar -zcf sme_deps_${OS}.tgz ${INSTALL_PREFIX}/*
71+
tar -zcf sme_deps_${OS}${BUILD_TAG}.tgz ${INSTALL_PREFIX}/*

0 commit comments

Comments
 (0)