File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 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/setup-ci@2025.10.06
34+ - uses : spatial-model-editor/setup-ci@2025.10.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 :
Original file line number Diff line number Diff 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"'
3434fi
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
3740git clone -b ${DUNE_COPASI_VERSION} --depth 1 https://gitlab.dune-project.org/copasi/dune-copasi.git
@@ -50,7 +53,11 @@ bash .ci/setup_dune $PWD/dune-copasi.opts
5053bash .ci/install $PWD /dune-copasi.opts
5154
5255# build & run dune-copasi tests
53- bash .ci/test $PWD /dune-copasi.opts
56+ if [[ $BUILD_TAG == " _tsan" ]]; then
57+ echo " Skipping tests for TSAN build"
58+ else
59+ bash .ci/test $PWD /dune-copasi.opts
60+ fi
5461
5562ccache --show-stats
5663
@@ -65,4 +72,4 @@ cat ${INSTALL_PREFIX}/share/dune/cmake/modules/DunePythonCommonMacros.cmake
6572ls ${INSTALL_PREFIX}
6673mkdir artefacts
6774cd artefacts
68- tar -zcf sme_deps_${OS} .tgz ${INSTALL_PREFIX} /*
75+ tar -zcf sme_deps_${OS}${BUILD_TAG} .tgz ${INSTALL_PREFIX} /*
You can’t perform that action at this time.
0 commit comments