mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
| Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` | | [lukka/get-cmake](https://github.com/lukka/get-cmake) | `4.3.4` | `4.4.1` | | [actions/setup-java](https://github.com/actions/setup-java) | `5.4.0` | `5.6.0` | | [dorny/paths-filter](https://github.com/dorny/paths-filter) | `4.0.1` | `4.0.2` | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.36.2` | `4.37.3` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.36.2` | `4.37.3` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.36.2` | `4.37.3` | | [codespell-project/actions-codespell](https://github.com/codespell-project/actions-codespell) | `3abb875e3aa9713e40eed5aea082672a42f7f95c` | `3c04c03694eb927ff908b8b5abfe9c58b239b0ae` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `6.2.1` | `6.2.3` | | [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) | `1.5.0` | `1.5.2` | | [julia-actions/julia-runtest](https://github.com/julia-actions/julia-runtest) | `1.11.5` | `1.12.0` | | [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) | `2.8.0` | `2.9.0` | | [vmactions/openbsd-vm](https://github.com/vmactions/openbsd-vm) | `1.4.4` | `1.4.5` | | [mpi4py/setup-mpi](https://github.com/mpi4py/setup-mpi) | `1.4.3` | `1.4.4` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `3.0.1` | `3.0.2` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.4.3` | `2.4.4` | | [actions/setup-python](https://github.com/actions/setup-python) | `6.3.0` | `7.0.0` |
103 lines
3.3 KiB
YAML
103 lines
3.3 KiB
YAML
name: Test HDF5 Subfiling VFD
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
build_mode:
|
|
description: "Build type (CMAKE_BUILD_TYPE)"
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
|
|
|
jobs:
|
|
build_and_test:
|
|
strategy:
|
|
# Let jobs run to completion even if one fails
|
|
fail-fast: false
|
|
matrix:
|
|
os_name: ["Ubuntu"]
|
|
# os_name: ["Ubuntu", "MacOS"]
|
|
mpi_lib: ["OpenMPI"]
|
|
# mpi_lib: ["OpenMPI", "MPICH"]
|
|
include:
|
|
- os_name: "Ubuntu"
|
|
os: ubuntu-latest
|
|
mpi_lib: "OpenMPI"
|
|
# - os_name: "Ubuntu"
|
|
# os: ubuntu-latest
|
|
# mpi_lib: "MPICH"
|
|
# - os_name: "MacOS"
|
|
# os: macos-latest
|
|
# mpi_lib: "OpenMPI"
|
|
# - os_name: "MacOS"
|
|
# os: macos-latest
|
|
# mpi_lib: "MPICH"
|
|
|
|
# Sets the job's name from the properties
|
|
name: "Test HDF5 Subfiling VFD (${{ inputs.build_mode }}) on ${{ matrix.os_name }} with ${{ matrix.mpi_lib }}"
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
# - name: Install Linux Dependencies
|
|
# run: |
|
|
# sudo apt-get update
|
|
# sudo apt-get install
|
|
# if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
|
|
# For now, just install OpenMPI or MPICH with the package
|
|
# manager. Eventually, we should pick one or 2 release
|
|
# versions of each, then build and cache those installations
|
|
- name: Install OpenMPI
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libopenmpi-dev
|
|
echo "CC=mpicc" >> $GITHUB_ENV
|
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.mpi_lib == 'OpenMPI' }}
|
|
|
|
- name: Install MPICH
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libmpich-dev
|
|
echo "CC=mpicc" >> $GITHUB_ENV
|
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.mpi_lib == 'MPICH' }}
|
|
|
|
- name: Checkout HDF5
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Configure HDF5 with Subfiling VFD
|
|
shell: bash
|
|
run: |
|
|
mkdir ${{ runner.workspace }}/build
|
|
cd ${{ runner.workspace }}/build
|
|
cmake -DCMAKE_BUILD_TYPE=${{ inputs.build_mode }} \
|
|
-DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/hdf5_build \
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
-DHDF5_TEST_VFD:BOOL=ON \
|
|
-DHDF5_ENABLE_PARALLEL:BOOL=ON \
|
|
-DHDF5_ENABLE_SUBFILING_VFD:BOOL=ON \
|
|
-DMPIEXEC_MAX_NUMPROCS=2 \
|
|
$GITHUB_WORKSPACE
|
|
cat src/libhdf5.settings
|
|
|
|
- name: Build HDF5
|
|
shell: bash
|
|
working-directory: ${{ runner.workspace }}/build
|
|
run: |
|
|
cmake --build . --parallel 3 --config ${{ inputs.build_mode }}
|
|
echo "LD_LIBRARY_PATH=${{ runner.workspace }}/build/bin" >> $GITHUB_ENV
|
|
|
|
- name: Test HDF5 Subfiling VFD
|
|
working-directory: ${{ runner.workspace }}/build
|
|
run: |
|
|
# For now, just run the tests directly setup for use with the
|
|
# Subfiling VFD. We can expand on this once the library's tests
|
|
# are better separated into categories for VFD testing.
|
|
ctest --build-config ${{ inputs.build_mode }} \
|
|
-R "MPI_TEST_t_subfiling_vfd|MPI_TEST_t_vfd|H5_ph5_subfiling"
|