[CI] Compile test programs in parallel

This commit is contained in:
Ray Speth 2024-06-03 18:31:33 -04:00 committed by Ray Speth
parent 43b1fffe14
commit 6c113aef97
2 changed files with 31 additions and 0 deletions

View File

@ -104,6 +104,9 @@ jobs:
path: build/lib/libcantera_shared.so path: build/lib/libcantera_shared.so
name: libcantera_shared-${{ matrix.os }}.so name: libcantera_shared-${{ matrix.os }}.so
retention-days: 2 retention-days: 2
- name: Build Tests
run:
python3 `which scons` -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time
@ -146,6 +149,9 @@ jobs:
CXX=clang++-14 CC=clang-14 f90_interface=n extra_lib_dirs=/usr/lib/llvm/lib CXX=clang++-14 CC=clang-14 f90_interface=n extra_lib_dirs=/usr/lib/llvm/lib
-j4 debug=n --debug=time hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR -j4 debug=n --debug=time hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR
logging=debug warning_flags='-Wall -Werror -Wsuggest-override' logging=debug warning_flags='-Wall -Werror -Wsuggest-override'
- name: Build Tests
run:
python3 `which scons` -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time
@ -194,6 +200,9 @@ jobs:
path: build/lib/libcantera_shared.dylib path: build/lib/libcantera_shared.dylib
name: libcantera_shared.dylib name: libcantera_shared.dylib
retention-days: 2 retention-days: 2
- name: Build Tests
run:
scons -j3 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
scons test show_long_tests=yes verbose_tests=yes --debug=time scons test show_long_tests=yes verbose_tests=yes --debug=time
@ -240,6 +249,9 @@ jobs:
optimize=n skip_slow_tests=y no_optimize_flags='-DNDEBUG -O0' \ optimize=n skip_slow_tests=y no_optimize_flags='-DNDEBUG -O0' \
FORTRANFLAGS='-O0' env_vars=all -j4 --debug=time \ FORTRANFLAGS='-O0' env_vars=all -j4 --debug=time \
hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR
- name: Build Tests
run:
python3 `which scons` -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time
@ -572,6 +584,8 @@ jobs:
path: build/lib/cantera_shared.dll path: build/lib/cantera_shared.dll
name: cantera_shared.dll name: cantera_shared.dll
retention-days: 2 retention-days: 2
- name: Build Tests
run: scons -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: scons test show_long_tests=yes verbose_tests=yes --debug=time run: scons test show_long_tests=yes verbose_tests=yes --debug=time
shell: pwsh shell: pwsh
@ -647,6 +661,8 @@ jobs:
python_package=full env_vars=USERPROFILE,GITHUB_ACTIONS python_package=full env_vars=USERPROFILE,GITHUB_ACTIONS
msvc_version=${{ matrix.vs-toolset }} f90_interface=n --debug=time msvc_version=${{ matrix.vs-toolset }} f90_interface=n --debug=time
shell: cmd shell: cmd
- name: Build Tests
run: scons -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: scons test show_long_tests=yes verbose_tests=yes --debug=time run: scons test show_long_tests=yes verbose_tests=yes --debug=time
@ -697,6 +713,9 @@ jobs:
run: python3 `which scons` build env_vars=all CC=icx CXX=icpx -j4 debug=n run: python3 `which scons` build env_vars=all CC=icx CXX=icpx -j4 debug=n
hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR
--debug=time f90_interface=n # FORTRAN=ifx --debug=time f90_interface=n # FORTRAN=ifx
- name: Build Tests
run:
python3 `which scons` -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: | run: |
python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time
@ -755,6 +774,8 @@ jobs:
path: build\python\dist\Cantera*.whl path: build\python\dist\Cantera*.whl
name: Cantera-win_amd64.whl name: Cantera-win_amd64.whl
retention-days: 2 retention-days: 2
- name: Build Tests
run: scons -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: scons test show_long_tests=yes verbose_tests=yes --debug=time run: scons test show_long_tests=yes verbose_tests=yes --debug=time
- name: Upload Test binaries - name: Upload Test binaries

View File

@ -45,6 +45,8 @@ jobs:
CXX=clang++-14 CC=clang-14 f90_interface=n extra_lib_dirs=/usr/lib/llvm/lib CXX=clang++-14 CC=clang-14 f90_interface=n extra_lib_dirs=/usr/lib/llvm/lib
-j4 debug=n --debug=time hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR -j4 debug=n --debug=time hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR
logging=debug logging=debug
- name: Build Tests
run: python3 `which scons` -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time
@ -93,6 +95,8 @@ jobs:
system_eigen=y system_fmt=y system_sundials=y system_yamlcpp=y \ system_eigen=y system_fmt=y system_sundials=y system_yamlcpp=y \
system_blas_lapack=y hdf_support=y f90_interface=y \ system_blas_lapack=y hdf_support=y f90_interface=y \
cc_flags=-D_GLIBCXX_ASSERTIONS cc_flags=-D_GLIBCXX_ASSERTIONS
- name: Build Tests
run: scons -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
scons test verbose_tests=yes --debug=time scons test verbose_tests=yes --debug=time
@ -132,6 +136,8 @@ jobs:
system_yamlcpp=y system_blas_lapack=y hdf_support=y system_yamlcpp=y system_blas_lapack=y hdf_support=y
# note: 'system_highfive=y' is omitted as the current packaged version is too old; # note: 'system_highfive=y' is omitted as the current packaged version is too old;
# once newer version is available in 'latest', this should be tested as well # once newer version is available in 'latest', this should be tested as well
- name: Build Tests
run: scons -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
scons test verbose_tests=yes --debug=time scons test verbose_tests=yes --debug=time
@ -176,6 +182,8 @@ jobs:
python3 `which scons` build env_vars=all -j4 debug=n --debug=time \ python3 `which scons` build env_vars=all -j4 debug=n --debug=time \
system_fmt=y hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR \ system_fmt=y hdf_libdir=$HDF5_LIBDIR hdf_include=$HDF5_INCLUDEDIR \
system_blas_lapack=y hdf_support=y cc_flags=-D_GLIBCXX_ASSERTIONS system_blas_lapack=y hdf_support=y cc_flags=-D_GLIBCXX_ASSERTIONS
- name: Build Tests
run: python3 `which scons` -j4 build-tests
- name: Test Cantera - name: Test Cantera
run: run:
python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time python3 `which scons` test show_long_tests=yes verbose_tests=yes --debug=time
@ -206,5 +214,7 @@ jobs:
./.venv/bin/python -m pip install ruamel.yaml numpy cython pandas pytest pytest-github-actions-annotate-failures pint graphviz ./.venv/bin/python -m pip install ruamel.yaml numpy cython pandas pytest pytest-github-actions-annotate-failures pint graphviz
- name: Build Cantera - name: Build Cantera
run: $(brew --prefix)/bin/scons build env_vars=all python_cmd="$(pwd)/.venv/bin/python" -j3 debug=n --debug=time boost_inc_dir=${BOOST_INC_DIR} run: $(brew --prefix)/bin/scons build env_vars=all python_cmd="$(pwd)/.venv/bin/python" -j3 debug=n --debug=time boost_inc_dir=${BOOST_INC_DIR}
- name: Build Tests
run: $(brew --prefix)/bin/scons -j3 build-tests
- name: Test Cantera - name: Test Cantera
run: $(brew --prefix)/bin/scons test show_long_tests=yes verbose_tests=yes --debug=time run: $(brew --prefix)/bin/scons test show_long_tests=yes verbose_tests=yes --debug=time