mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Verify CMake workflows match autotools (#5035)
This commit is contained in:
parent
1e977c1db4
commit
ec4654e698
4
.github/workflows/main-cmake-par-spc.yml
vendored
4
.github/workflows/main-cmake-par-spc.yml
vendored
@ -48,6 +48,8 @@ jobs:
|
||||
-DHDF5_ENABLE_ALL_WARNINGS=ON \
|
||||
-DHDF5_ENABLE_WARNINGS_AS_ERRORS=ON \
|
||||
-DHDF5_ENABLE_PARALLEL:BOOL=ON \
|
||||
-DMPIEXEC_NUMPROC_FLAG:STRING=-n \
|
||||
-DMPIEXEC_MAX_NUMPROCS:STRING=2 \
|
||||
-DHDF5_ENABLE_SUBFILING_VFD:BOOL=ON \
|
||||
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \
|
||||
-DHDF5_BUILD_FORTRAN=OFF \
|
||||
@ -65,9 +67,7 @@ jobs:
|
||||
run: cmake --build . --parallel 3 --config ${{ inputs.build_mode }}
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
#
|
||||
# RUN TESTS
|
||||
#
|
||||
- name: CMake Run Tests
|
||||
run: ctest . -E MPI_TEST --parallel 2 -C ${{ inputs.build_mode }} -V
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
2
.github/workflows/main-cmake-par.yml
vendored
2
.github/workflows/main-cmake-par.yml
vendored
@ -47,6 +47,8 @@ jobs:
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DHDF5_ENABLE_ALL_WARNINGS=ON \
|
||||
-DHDF5_ENABLE_PARALLEL:BOOL=ON \
|
||||
-DMPIEXEC_NUMPROC_FLAG:STRING=-n \
|
||||
-DMPIEXEC_MAX_NUMPROCS:STRING=2 \
|
||||
-DHDF5_ENABLE_SUBFILING_VFD:BOOL=ON \
|
||||
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \
|
||||
-DHDF5_BUILD_FORTRAN=ON \
|
||||
|
23
.github/workflows/main-cmake-spc.yml
vendored
23
.github/workflows/main-cmake-spc.yml
vendored
@ -68,10 +68,17 @@ jobs:
|
||||
run: cmake --build . --parallel 3 --config Debug
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
# RUN TESTS - disable until some tests are fixed
|
||||
# - name: CMake Run Tests
|
||||
# run: ctest . --parallel 2 -C Debug -V
|
||||
# working-directory: ${{ runner.workspace }}/build
|
||||
# RUN TESTS
|
||||
- name: CMake Run Tests
|
||||
run: |
|
||||
ctest . --parallel 2 -C Debug -V -E "testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat"
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
- name: CMake Run Expected to Fail Tests
|
||||
run: |
|
||||
ctest . --parallel 2 -C Debug -V -R "testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat"
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
continue-on-error: true
|
||||
|
||||
build_v1_8:
|
||||
name: "gcc DBG v1.8 default API"
|
||||
@ -123,11 +130,11 @@ jobs:
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
#
|
||||
# RUN TESTS - disable until some tests are fixed
|
||||
# RUN TESTS
|
||||
#
|
||||
# - name: CMake Run Tests
|
||||
# run: ctest . --parallel 2 -C Debug -V
|
||||
# working-directory: ${{ runner.workspace }}/build
|
||||
- name: CMake Run Tests
|
||||
run: ctest . --parallel 2 -C Debug -V
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
build_v1_10:
|
||||
name: "gcc DBG v1.10 default API"
|
||||
|
7
.github/workflows/main-cmake.yml
vendored
7
.github/workflows/main-cmake.yml
vendored
@ -8,7 +8,6 @@ on:
|
||||
description: "TS or empty"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
build_mode:
|
||||
description: "release vs. debug build"
|
||||
required: true
|
||||
@ -160,9 +159,7 @@ jobs:
|
||||
- name: Get Sources
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
#
|
||||
# CMAKE CONFIGURE
|
||||
#
|
||||
- name: CMake Configure
|
||||
run: |
|
||||
mkdir "${{ runner.workspace }}/build"
|
||||
@ -217,16 +214,12 @@ jobs:
|
||||
shell: bash
|
||||
if: ${{ inputs.thread_safety == 'TS' }}
|
||||
|
||||
#
|
||||
# BUILD
|
||||
#
|
||||
- name: CMake Build
|
||||
run: cmake --build . --parallel 3 --config ${{ inputs.build_mode }}
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
#
|
||||
# RUN TESTS
|
||||
#
|
||||
- name: CMake Run Tests
|
||||
run: ctest . --parallel 2 -C ${{ inputs.build_mode }} -V
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
4
.github/workflows/msys2-cmake.yml
vendored
4
.github/workflows/msys2-cmake.yml
vendored
@ -81,11 +81,11 @@ jobs:
|
||||
|
||||
- name: CMake Run Tests
|
||||
run: |
|
||||
ctest . --parallel 2 -C ${{ inputs.build_mode }} -V -E "tfloatsattrs|testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat"
|
||||
ctest . --parallel 2 -C ${{ inputs.build_mode }} -V -E "testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat"
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
- name: CMake Run Expected to Fail Tests
|
||||
run: |
|
||||
ctest . --parallel 2 -C ${{ inputs.build_mode }} -V -R "tfloatsattrs|testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat"
|
||||
ctest . --parallel 2 -C ${{ inputs.build_mode }} -V -R "testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat"
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
continue-on-error: true
|
||||
|
2
.github/workflows/nvhpc-cmake.yml
vendored
2
.github/workflows/nvhpc-cmake.yml
vendored
@ -54,6 +54,8 @@ jobs:
|
||||
-DCMAKE_BUILD_TYPE=${{ inputs.build_mode }} \
|
||||
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF \
|
||||
-DHDF5_ENABLE_PARALLEL:BOOL=ON \
|
||||
-DMPIEXEC_NUMPROC_FLAG:STRING=-np \
|
||||
-DMPIEXEC_MAX_NUMPROCS:STRING=2 \
|
||||
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \
|
||||
-DLIBAEC_USE_LOCALCONTENT=OFF \
|
||||
-DZLIB_USE_LOCALCONTENT=OFF \
|
||||
|
1
.github/workflows/testxpr-cmake.yml
vendored
1
.github/workflows/testxpr-cmake.yml
vendored
@ -65,4 +65,3 @@ jobs:
|
||||
HDF5TestExpress: 0
|
||||
run: ctest . --parallel 2 -C ${{ matrix.build_mode }} -V -R H5TESTXPR
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user