mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
Turn on parallel CI tests in Autotools & CMake (#4573)
This commit is contained in:
parent
d0fe57624f
commit
fe7dca0683
26
.github/workflows/main-auto-par.yml
vendored
26
.github/workflows/main-auto-par.yml
vendored
@ -50,8 +50,9 @@ jobs:
|
||||
- name: Get Sources
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
# AUTOTOOLS CONFIGURE
|
||||
- name: Autotools Configure
|
||||
env:
|
||||
NPROCS: 2
|
||||
run: |
|
||||
sh ./autogen.sh
|
||||
mkdir "${{ runner.workspace }}/build"
|
||||
@ -71,7 +72,28 @@ jobs:
|
||||
--with-szlib=yes
|
||||
shell: bash
|
||||
|
||||
# BUILD
|
||||
- name: Autotools Build
|
||||
run: make -j3
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
|
||||
# ph5diff tests are in the tools/tests directory so they will get run
|
||||
# here, so leave NPROCS set here as well
|
||||
- name: Autotools Run Tests
|
||||
env:
|
||||
NPROCS: 2
|
||||
run: |
|
||||
cd test && make check -j2 && cd ..
|
||||
cd tools && make check -j2 && cd ..
|
||||
cd hl && make check -j2 && cd ..
|
||||
cd fortran/test && make check -j2 && cd ../..
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
if: ${{ inputs.thread_safety == 'disable' }}
|
||||
|
||||
- name: Autotools Run Parallel Tests
|
||||
env:
|
||||
NPROCS: 2
|
||||
run: |
|
||||
cd testpar && make check && cd ..
|
||||
cd fortran/testpar && make check -j2 && cd ../..
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
if: ${{ inputs.thread_safety == 'disable' }}
|
||||
|
13
.github/workflows/main-cmake-par.yml
vendored
13
.github/workflows/main-cmake-par.yml
vendored
@ -62,3 +62,16 @@ jobs:
|
||||
- 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 . -E MPI_TEST --parallel 2 -C ${{ inputs.build_mode }} -V
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
if: ${{ matrix.run_tests && (inputs.thread_safety != 'TS') }}
|
||||
|
||||
- name: CMake Run Parallel Tests
|
||||
run: ctest . -R MPI_TEST -C ${{ inputs.build_mode }} -V
|
||||
working-directory: ${{ runner.workspace }}/build
|
||||
if: ${{ matrix.run_tests && (inputs.thread_safety != 'TS') }}
|
||||
|
Loading…
Reference in New Issue
Block a user