mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-27 08:01:04 +08:00
Only run ttsafe in thread-safe GitHub actions (#2777)
Also fixes broken thread-safety testing (due to a typo in the GitHub action checks)
This commit is contained in:
parent
37e0484af5
commit
21c1af2707
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
@ -486,7 +486,7 @@ jobs:
|
||||
cd "${{ runner.workspace }}/build"
|
||||
${{ matrix.flags }} $GITHUB_WORKSPACE/configure --enable-build-mode=${{ matrix.build_mode.autotools }} --${{ matrix.deprec_sym }}-deprecated-symbols --with-default-api-version=${{ matrix.default_api }} --enable-shared --${{ matrix.parallel }}-parallel --${{ matrix.cpp }}-cxx --${{ matrix.fortran }}-fortran --${{ matrix.java }}-java --${{ matrix.mirror_vfd }}-mirror-vfd --${{ matrix.direct_vfd }}-direct-vfd --with-szlib=${{ matrix.szip }}
|
||||
shell: bash
|
||||
if: (matrix.generator == 'autogen') && (! matrix.thread_safe.enabled)
|
||||
if: (matrix.generator == 'autogen') && ! (matrix.thread_safety.enabled)
|
||||
|
||||
- name: Autotools Configure (Thread-Safe)
|
||||
run: |
|
||||
@ -495,7 +495,7 @@ jobs:
|
||||
cd "${{ runner.workspace }}/build"
|
||||
${{ matrix.flags }} $GITHUB_WORKSPACE/configure --enable-build-mode=${{ matrix.build_mode.autotools }} --enable-shared --enable-threadsafe --disable-hl --${{ matrix.parallel }}-parallel --${{ matrix.mirror_vfd }}-mirror-vfd --${{ matrix.direct_vfd }}-direct-vfd --with-szlib=${{ matrix.szip }}
|
||||
shell: bash
|
||||
if: (matrix.generator == 'autogen') && (matrix.thread_safe.enabled)
|
||||
if: (matrix.generator == 'autogen') && (matrix.thread_safety.enabled)
|
||||
|
||||
#
|
||||
# CMAKE CONFIGURE
|
||||
@ -507,16 +507,16 @@ jobs:
|
||||
cd "${{ runner.workspace }}/build"
|
||||
cmake -C $GITHUB_WORKSPACE/config/cmake/cacheinit.cmake ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.build_mode.cmake }} -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} -DBUILD_SHARED_LIBS=ON -DHDF5_ENABLE_ALL_WARNINGS=ON -DHDF5_ENABLE_PARALLEL:BOOL=${{ matrix.parallel }} -DHDF5_BUILD_CPP_LIB:BOOL=${{ matrix.cpp }} -DHDF5_BUILD_FORTRAN=${{ matrix.fortran }} -DHDF5_BUILD_JAVA=${{ matrix.java }} -DBUILD_SZIP_WITH_FETCHCONTENT=${{ matrix.libaecfc }} -DLIBAEC_USE_LOCALCONTENT=${{ matrix.localaec }} -DBUILD_ZLIB_WITH_FETCHCONTENT=${{ matrix.zlibfc }} -DZLIB_USE_LOCALCONTENT=${{ matrix.localzlib }} -DHDF5_ENABLE_MIRROR_VFD:BOOL=${{ matrix.mirror_vfd }} -DHDF5_ENABLE_DIRECT_VFD:BOOL=${{ matrix.direct_vfd }} $GITHUB_WORKSPACE
|
||||
shell: bash
|
||||
if: (matrix.generator != 'autogen') && (! matrix.thread_safe.enabled)
|
||||
if: (matrix.generator != 'autogen') && ! (matrix.thread_safety.enabled)
|
||||
|
||||
|
||||
- name: CMake Configure (Thread-Safe)
|
||||
run: |
|
||||
mkdir "${{ runner.workspace }}/build"
|
||||
cd "${{ runner.workspace }}/build"
|
||||
cmake -C $GITHUB_WORKSPACE/config/cmake/cacheinit.cmake ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.build_mode.cmake }} -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} -DBUILD_SHARED_LIBS=ON -DHDF5_ENABLE_ALL_WARNINGS=ON -DHDF5_ENABLE_THREADSAFE:BOOL=ON -DHDF5_ENABLE_PARALLEL:BOOL=${{ matrix.parallel }} -DHDF5_BUILD_HL_LIB:BOOL=OFF -DHDF5_ENABLE_MIRROR_VFD:BOOL=${{ matrix.mirror_vfd }} -DHDF5_ENABLE_DIRECT_VFD:BOOL=${{ matrix.direct_vfd }} $GITHUB_WORKSPACE
|
||||
cmake -C $GITHUB_WORKSPACE/config/cmake/cacheinit.cmake ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.build_mode.cmake }} -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} -DBUILD_SHARED_LIBS=ON -DHDF5_ENABLE_ALL_WARNINGS=ON -DHDF5_ENABLE_THREADSAFE:BOOL=ON -DHDF5_ENABLE_PARALLEL:BOOL=${{ matrix.parallel }} -DHDF5_BUILD_CPP_LIB:BOOL=OFF -DHDF5_BUILD_FORTRAN:BOOL=OFF -DHDF5_BUILD_JAVA:BOOL=OFF -DHDF5_BUILD_HL_LIB:BOOL=OFF -DBUILD_SZIP_WITH_FETCHCONTENT=${{ matrix.libaecfc }} -DLIBAEC_USE_LOCALCONTENT=${{ matrix.localaec }} -DBUILD_ZLIB_WITH_FETCHCONTENT=${{ matrix.zlibfc }} -DZLIB_USE_LOCALCONTENT=${{ matrix.localzlib }} -DHDF5_ENABLE_MIRROR_VFD:BOOL=${{ matrix.mirror_vfd }} -DHDF5_ENABLE_DIRECT_VFD:BOOL=${{ matrix.direct_vfd }} $GITHUB_WORKSPACE
|
||||
shell: bash
|
||||
if: (matrix.generator != 'autogen') && (matrix.thread_safe.enabled)
|
||||
if: (matrix.generator != 'autogen') && (matrix.thread_safety.enabled)
|
||||
|
||||
#
|
||||
# BUILD
|
||||
@ -536,16 +536,32 @@ jobs:
|
||||
# RUN TESTS
|
||||
#
|
||||
|
||||
# NORMAL
|
||||
|
||||
- name: Autotools Run Tests
|
||||
run: make check -j2
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
if: (matrix.generator == 'autogen') && (matrix.run_tests)
|
||||
if: (matrix.generator == 'autogen') && (matrix.run_tests) && ! (matrix.thread_safety.enabled)
|
||||
|
||||
- name: CMake Run Tests
|
||||
run: ctest --build . --parallel 2 -C ${{ matrix.build_mode.cmake }} -V
|
||||
run: ctest . --parallel 2 -C ${{ matrix.build_mode.cmake }} -V
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
# Skip Debug MSVC while we investigate H5L Java test timeouts
|
||||
if: (matrix.generator != 'autogen') && (matrix.run_tests) && ! ((matrix.name == 'Windows MSVC CMake') && (matrix.build_mode.cmake == 'Debug'))
|
||||
if: (matrix.generator != 'autogen') && (matrix.run_tests) && ! (matrix.thread_safety.enabled) && ! ((matrix.name == 'Windows MSVC CMake') && (matrix.build_mode.cmake == 'Debug'))
|
||||
|
||||
# THREAD-SAFE
|
||||
|
||||
- name: Autotools Run Thread-Safe Tests
|
||||
run: |
|
||||
cd test
|
||||
./ttsafe
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
if: (matrix.generator == 'autogen') && (matrix.run_tests) && (matrix.thread_safety.enabled)
|
||||
|
||||
- name: CMake Run Thread-Safe Tests
|
||||
run: ctest . --parallel 2 -C ${{ matrix.build_mode.cmake }} -V -R ttsafe
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
if: (matrix.generator != 'autogen') && (matrix.run_tests) && (matrix.thread_safety.enabled)
|
||||
|
||||
#
|
||||
# INSTALL (note that this runs even when we don't run the tests)
|
||||
|
Loading…
Reference in New Issue
Block a user