Skip to content

Commit e8b62d9

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

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 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"
@@ -25,15 +28,19 @@ jobs:
2528
defaults:
2629
run:
2730
shell: ${{ matrix.shell }}
31+
env:
32+
BUILD_TAG: ${{ matrix.BUILD_TAG }}
2833
steps:
29-
- uses: spatial-model-editor/[email protected].06
34+
- uses: spatial-model-editor/[email protected].15
3035
with:
31-
sme_deps_common: "2025.10.06"
36+
sme_deps_common: "2025.10.15"
37+
build_tag: ${{ matrix.BUILD_TAG }}
38+
cache_id: ${{ matrix.BUILD_TAG }}
3239
- uses: actions/checkout@v4
3340
- run: ./build.sh
3441
- uses: actions/upload-artifact@v4
3542
with:
36-
name: artifacts-${{ matrix.os }}
43+
name: artifacts-${{ matrix.os }}${{ matrix.BUILD_TAG }}
3744
path: ./artefacts/*
3845
retention-days: 3
3946
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 -D_GLIBCXX_USE_TBB_PAR_BACKEND=0 -DNDEBUG -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)