mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Addresses the "multiple @ param documentation sections" warnings are caused by the interaction of three things:
1. MACRO_EXPANSION = YES with EXPAND_ONLY_PREDEF = NO in Doxyfile.in
2. Versioned API macros in H5version.h like:
\def documentation in APIVersions.dox like:
3. \def H5Tarray_create \api_vers_2{H5Tarray_create,H5Tarray_create1,H5Tarray_create2}
Because Doxygen expands all macros, it sees H5Tarray_create as an alias for H5Tarray_create1. It then associates documentation from both the \def block (for the macro) and the function's own doc block (with \param entries) with the same function — resulting in "multiple @ param documentation sections."
* Update Doxygen version from 1.16.0 to 1.16.1
Use Doxygen 1.16.1 for all platforms. This version includes the latest
bug fixes and improvements while maintaining compatibility with our
documentation format.
* Fix Windows Doxygen installation for version 1.16.1
Handle different Windows binary naming conventions across Doxygen versions:
- 1.16.1 uses: doxygen-VERSION.windows.x64.bin.zip
- 1.16.0 uses: doxygen-VERSION.x64.bin.zip
Try the newer naming convention first, then fall back to the older one
if the download fails. This ensures compatibility across versions.
* Use ssciwr/doxygen-install in setup-doxygen action
Replace direct installation of official Doxygen binaries with
ssciwr/doxygen-install action. This avoids Java documentation parsing
errors that occur with official binaries but not with distribution
builds.
The setup-doxygen action now serves as a thin wrapper around
ssciwr/doxygen-install@f13be16c83 (v1),
using commit hash for security and reproducibility.
* Remove redundant version specification from workflows
The setup-doxygen action already has a default version (1.16.1),
so explicit version specification in workflows is unnecessary.
This follows DRY principles and makes version updates simpler.
825 lines
34 KiB
YAML
825 lines
34 KiB
YAML
name: hdf5 dev CTest script runs
|
|
|
|
# Triggers the workflow on a call from another workflow
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
snap_name:
|
|
description: 'The name in the source tarballs'
|
|
type: string
|
|
required: false
|
|
default: hdfsrc
|
|
file_base:
|
|
description: "The common base name of the source tarballs"
|
|
required: true
|
|
type: string
|
|
use_environ:
|
|
description: 'Environment to locate files'
|
|
type: string
|
|
required: true
|
|
default: snapshots
|
|
cmake_version:
|
|
description: "3.26.0 or later, latest"
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
|
|
|
jobs:
|
|
build_and_test_win:
|
|
# Windows w/ MSVC
|
|
#
|
|
name: "Windows MSVC CTest"
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Get Actions
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
|
|
- name: Install Dependencies (Windows)
|
|
run: choco install ninja
|
|
|
|
- name: Enable Developer Command Prompt
|
|
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
|
|
|
- name: Install CMake
|
|
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # latest
|
|
with:
|
|
cmakeVersion: ${{ inputs.cmake_version }}
|
|
ninjaVersion: latest
|
|
|
|
- name: Check CMake Version
|
|
shell: bash
|
|
run: |
|
|
which cmake
|
|
cmake --version
|
|
|
|
- name: Set file base name (Windows)
|
|
id: set-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
if [[ '${{ inputs.use_environ }}' == 'release' ]]
|
|
then
|
|
SOURCE_NAME_BASE=$(echo "${{ inputs.snap_name }}")
|
|
else
|
|
SOURCE_NAME_BASE=$(echo "hdfsrc")
|
|
fi
|
|
echo "SOURCE_BASE=$SOURCE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
# Get files created by release script
|
|
- name: Get zip-tarball (Windows)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: zip-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: using powershell
|
|
shell: pwsh
|
|
run: Get-Location
|
|
|
|
- name: List files for the space (Windows)
|
|
run: |
|
|
Get-ChildItem -Path ${{ github.workspace }}
|
|
Get-ChildItem -Path ${{ runner.workspace }}
|
|
shell: pwsh
|
|
|
|
- name: Uncompress source (Windows)
|
|
working-directory: ${{ github.workspace }}
|
|
run: 7z x ${{ steps.set-file-base.outputs.FILE_BASE }}.zip
|
|
shell: bash
|
|
|
|
- name: Symlink script files for the space (Windows)
|
|
uses: ./.github/actions/symlink-ctest-scripts
|
|
with:
|
|
source-base: ${{ steps.set-file-base.outputs.SOURCE_BASE }}
|
|
|
|
- name: List files for the hdf5 (Windows)
|
|
run: |
|
|
Get-ChildItem -Path ${{ runner.workspace }}/hdf5
|
|
shell: pwsh
|
|
|
|
- name: Create options file (Windows)
|
|
uses: "DamianReeves/write-file-action@1d019960841941be46b139298996df6f139cc7a4" # master
|
|
with:
|
|
path: ${{ runner.workspace }}/hdf5/HDF5options.cmake
|
|
write-mode: overwrite
|
|
contents: |
|
|
set (CTEST_DROP_SITE_INIT "my.cdash.org")
|
|
# Change following line to submit to your CDash dashboard to a different CDash project
|
|
#set (CTEST_DROP_LOCATION_INIT "/submit.php?project=HDF5")
|
|
set (MODEL "GHDaily")
|
|
set (GROUP "GHDaily")
|
|
set (SITE_BUILDNAME_SUFFIX "${{ steps.set-file-base.outputs.FILE_BASE }}")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_ZLIB_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DLIBAEC_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DPLUGIN_USE_LOCALCONTENT:BOOL=OFF")
|
|
|
|
- name: Run CTest script (Windows)
|
|
run: |
|
|
cd "${{ runner.workspace }}/hdf5"
|
|
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-${{ github.event.repository.full_name }},LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=VS202264,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -O hdf5.log
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
# Save log files created by CTest script
|
|
- name: Save log (Windows_intel)
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v5
|
|
with:
|
|
name: cl-win-log
|
|
path: ${{ runner.workspace }}/hdf5/hdf5.log
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
build_and_test_linux:
|
|
# Linux (Ubuntu) w/ gcc
|
|
#
|
|
name: "Ubuntu gcc"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get Actions
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
|
|
- name: Install Dependencies (Linux)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install ninja-build graphviz curl
|
|
|
|
- name: Install CMake
|
|
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # latest
|
|
with:
|
|
cmakeVersion: ${{ inputs.cmake_version }}
|
|
ninjaVersion: latest
|
|
|
|
- name: Set file base name (Linux)
|
|
id: set-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
if [[ '${{ inputs.use_environ }}' == 'release' ]]
|
|
then
|
|
SOURCE_NAME_BASE=$(echo "${{ inputs.snap_name }}")
|
|
else
|
|
SOURCE_NAME_BASE=$(echo "hdfsrc")
|
|
fi
|
|
echo "SOURCE_BASE=$SOURCE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
|
|
# Get files created by release script
|
|
- name: Get tgz-tarball (Linux)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: tgz-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: List files for the space (Linux)
|
|
run: |
|
|
ls -l ${{ github.workspace }}
|
|
ls ${{ runner.workspace }}
|
|
|
|
- name: Uncompress source (Linux)
|
|
run: tar -zxvf ${{ github.workspace }}/${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz
|
|
|
|
- name: Symlink script files for the space (Linux)
|
|
uses: ./.github/actions/symlink-ctest-scripts
|
|
with:
|
|
source-base: ${{ steps.set-file-base.outputs.SOURCE_BASE }}
|
|
|
|
- name: List files for the hdf5 (Linux)
|
|
run: |
|
|
ls ${{ runner.workspace }}/hdf5
|
|
|
|
- name: Create options file (Linux)
|
|
uses: "DamianReeves/write-file-action@1d019960841941be46b139298996df6f139cc7a4" # master
|
|
with:
|
|
path: ${{ runner.workspace }}/hdf5/HDF5options.cmake
|
|
write-mode: overwrite
|
|
contents: |
|
|
set (CTEST_DROP_SITE_INIT "my.cdash.org")
|
|
# Change following line to submit to your CDash dashboard to a different CDash project
|
|
#set (CTEST_DROP_LOCATION_INIT "/submit.php?project=HDF5")
|
|
set (MODEL "GHDaily")
|
|
set (GROUP "GHDaily")
|
|
set (SITE_BUILDNAME_SUFFIX "${{ steps.set-file-base.outputs.FILE_BASE }}")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_ZLIB_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DLIBAEC_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DPLUGIN_USE_LOCALCONTENT:BOOL=OFF")
|
|
|
|
- name: Run CTest (Linux)
|
|
run: |
|
|
cd "${{ runner.workspace }}/hdf5"
|
|
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-${{ github.event.repository.full_name }}-GCC,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -O hdf5.log
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
# Save log files created by CTest script
|
|
- name: Save log (Linux)
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v5
|
|
with:
|
|
name: gcc-ubuntu-log
|
|
path: ${{ runner.workspace }}/hdf5/hdf5.log
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
build_and_test_mac_latest:
|
|
# MacOS w/ Clang
|
|
#
|
|
name: "MacOS Clang"
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Get Actions
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
|
|
- name: Install Dependencies (MacOS_latest)
|
|
run: brew install ninja curl
|
|
|
|
- name: check clang version
|
|
shell: bash
|
|
run: |
|
|
which clang
|
|
clang -v
|
|
|
|
- name: Install CMake
|
|
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # latest
|
|
with:
|
|
cmakeVersion: ${{ inputs.cmake_version }}
|
|
ninjaVersion: latest
|
|
|
|
- name: Check CMake Version
|
|
shell: bash
|
|
run: |
|
|
which cmake
|
|
cmake --version
|
|
|
|
- name: Set up JDK 19
|
|
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
|
|
- name: Set file base name (MacOS_latest)
|
|
id: set-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
if [[ '${{ inputs.use_environ }}' == 'release' ]]
|
|
then
|
|
SOURCE_NAME_BASE=$(echo "${{ inputs.snap_name }}")
|
|
else
|
|
SOURCE_NAME_BASE=$(echo "hdfsrc")
|
|
fi
|
|
echo "SOURCE_BASE=$SOURCE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
|
|
# Get files created by release script
|
|
- name: Get tgz-tarball (MacOS_latest)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: tgz-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: List files for the space (MacOS_latest)
|
|
run: |
|
|
ls ${{ github.workspace }}
|
|
ls ${{ runner.workspace }}
|
|
|
|
- name: Uncompress source (MacOS_latest)
|
|
run: tar -zxvf ${{ github.workspace }}/${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz
|
|
|
|
- name: Symlink script files for the space (MacOS_latest)
|
|
uses: ./.github/actions/symlink-ctest-scripts
|
|
with:
|
|
source-base: ${{ steps.set-file-base.outputs.SOURCE_BASE }}
|
|
|
|
# symlinks the compiler executables to a common location
|
|
- name: Setup GNU Fortran
|
|
uses: fortran-lang/setup-fortran@47809fdb6e637da656ce9ada436527b240c1287f # v1
|
|
id: setup-fortran
|
|
with:
|
|
compiler: gcc
|
|
version: 14
|
|
|
|
- name: List files for the hdf5 (MacOS_latest)
|
|
run: |
|
|
ls ${{ runner.workspace }}/hdf5
|
|
|
|
- name: Create options file (MacOS_latest)
|
|
uses: "DamianReeves/write-file-action@1d019960841941be46b139298996df6f139cc7a4" # master
|
|
with:
|
|
path: ${{ runner.workspace }}/hdf5/HDF5options.cmake
|
|
write-mode: overwrite
|
|
contents: |
|
|
set (CTEST_DROP_SITE_INIT "my.cdash.org")
|
|
# Change following line to submit to your CDash dashboard to a different CDash project
|
|
#set (CTEST_DROP_LOCATION_INIT "/submit.php?project=HDF5")
|
|
set (SITE_BUILDNAME_SUFFIX "${{ steps.set-file-base.outputs.FILE_BASE }}")
|
|
set (MODEL "GHDaily")
|
|
set (GROUP "GHDaily")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_ZLIB_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DLIBAEC_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DPLUGIN_USE_LOCALCONTENT:BOOL=OFF")
|
|
|
|
- name: Run CTest (MacOS_latest)
|
|
id: run-ctest
|
|
run: |
|
|
cd "${{ runner.workspace }}/hdf5"
|
|
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-${{ github.event.repository.full_name }}-Clang,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -O hdf5.log
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
# Save log files created by CTest script
|
|
- name: Save log (MacOS_latest)
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v5
|
|
with:
|
|
name: macos-log
|
|
path: ${{ runner.workspace }}/hdf5/hdf5.log
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
build_and_test_S3_linux:
|
|
# Linux S3 (Ubuntu) w/ gcc
|
|
#
|
|
name: "Ubuntu gcc S3"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get Actions
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
|
|
- name: Install Dependencies (Linux S3)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install ninja-build
|
|
|
|
- name: Install CMake
|
|
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # latest
|
|
with:
|
|
cmakeVersion: ${{ inputs.cmake_version }}
|
|
ninjaVersion: latest
|
|
|
|
- name: Install aws-c-s3 (Cached installation)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: libaws-c-s3-Release
|
|
|
|
- name: Untar libaws-c-s3 installation
|
|
run: |
|
|
tar xvf libaws-c-s3.tar -C ${{ runner.workspace }}
|
|
|
|
- name: List contents of libaws-c-s3 installation
|
|
run: |
|
|
ls -laR ${{ runner.workspace }}/aws-c-s3-build
|
|
|
|
- name: Setup environment
|
|
shell: bash
|
|
run: |
|
|
echo "LD_LIBRARY_PATH=${{ runner.workspace }}/aws-c-s3-build/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
|
echo "CMAKE_PREFIX_PATH=${{ runner.workspace }}/aws-c-s3-build" >> $GITHUB_ENV
|
|
|
|
- name: Set file base name (Linux S3)
|
|
id: set-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
if [[ '${{ inputs.use_environ }}' == 'release' ]]
|
|
then
|
|
SOURCE_NAME_BASE=$(echo "${{ inputs.snap_name }}")
|
|
else
|
|
SOURCE_NAME_BASE=$(echo "hdfsrc")
|
|
fi
|
|
echo "SOURCE_BASE=$SOURCE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
|
|
# Get files created by release script
|
|
- name: Get tgz-tarball (Linux S3)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: tgz-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: List files for the space (Linux S3)
|
|
run: |
|
|
ls -l ${{ github.workspace }}
|
|
ls ${{ runner.workspace }}
|
|
|
|
- name: Uncompress source (Linux S3)
|
|
run: tar -zxvf ${{ github.workspace }}/${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz
|
|
|
|
- name: Symlink script files for the space (Linux S3)
|
|
uses: ./.github/actions/symlink-ctest-scripts
|
|
with:
|
|
source-base: ${{ steps.set-file-base.outputs.SOURCE_BASE }}
|
|
|
|
- name: List files for the hdf5 (Linux S3)
|
|
run: |
|
|
ls ${{ runner.workspace }}/hdf5
|
|
|
|
- name: Create options file (Linux S3)
|
|
uses: "DamianReeves/write-file-action@1d019960841941be46b139298996df6f139cc7a4" # master
|
|
with:
|
|
path: ${{ runner.workspace }}/hdf5/HDF5options.cmake
|
|
write-mode: overwrite
|
|
contents: |
|
|
set (CTEST_DROP_SITE_INIT "my.cdash.org")
|
|
# Change following line to submit to your CDash dashboard to a different CDash project
|
|
#set (CTEST_DROP_LOCATION_INIT "/submit.php?project=HDF5")
|
|
set (SITE_BUILDNAME_SUFFIX "${{ steps.set-file-base.outputs.FILE_BASE }}")
|
|
set (MODEL "GHDaily")
|
|
set (GROUP "GHDaily")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_ZLIB_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DLIBAEC_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DPLUGIN_USE_LOCALCONTENT:BOOL=OFF")
|
|
|
|
- name: Run CTest (Linux S3)
|
|
run: |
|
|
cd "${{ runner.workspace }}/hdf5"
|
|
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-${{ github.event.repository.full_name }}-S3,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -O hdf5.log
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
# Save log files created by CTest script
|
|
- name: Save log (Linux S3)
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v5
|
|
with:
|
|
name: s3-ubuntu-log
|
|
path: ${{ runner.workspace }}/hdf5/hdf5.log
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
####### intel builds
|
|
build_and_test_win_intel:
|
|
# Windows w/ OneAPI
|
|
#
|
|
name: "Windows Intel CTest"
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Get Actions
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
|
|
- name: Install Dependencies (Windows_intel)
|
|
run: choco install ninja
|
|
|
|
- name: add oneAPI to env
|
|
uses: fortran-lang/setup-fortran@47809fdb6e637da656ce9ada436527b240c1287f # v1
|
|
id: setup-fortran
|
|
with:
|
|
compiler: intel
|
|
version: '2025.0'
|
|
|
|
- name: Install CMake
|
|
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # latest
|
|
with:
|
|
cmakeVersion: ${{ inputs.cmake_version }}
|
|
ninjaVersion: latest
|
|
|
|
- name: Set file base name (Windows_intel)
|
|
id: set-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
if [[ '${{ inputs.use_environ }}' == 'release' ]]
|
|
then
|
|
SOURCE_NAME_BASE=$(echo "${{ inputs.snap_name }}")
|
|
else
|
|
SOURCE_NAME_BASE=$(echo "hdfsrc")
|
|
fi
|
|
echo "SOURCE_BASE=$SOURCE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
# Get files created by release script
|
|
- name: Get zip-tarball (Windows_intel)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: zip-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: using powershell
|
|
shell: pwsh
|
|
run: Get-Location
|
|
|
|
- name: List files for the space (Windows_intel)
|
|
run: |
|
|
Get-ChildItem -Path ${{ github.workspace }}
|
|
Get-ChildItem -Path ${{ runner.workspace }}
|
|
shell: pwsh
|
|
|
|
- name: Uncompress source (Windows_intel)
|
|
working-directory: ${{ github.workspace }}
|
|
run: 7z x ${{ steps.set-file-base.outputs.FILE_BASE }}.zip
|
|
shell: bash
|
|
|
|
- name: Symlink script files for the space (Windows_intel)
|
|
uses: ./.github/actions/symlink-ctest-scripts
|
|
with:
|
|
source-base: ${{ steps.set-file-base.outputs.SOURCE_BASE }}
|
|
|
|
- name: List files for the hdf5 (Windows_intel)
|
|
run: |
|
|
Get-ChildItem -Path ${{ runner.workspace }}/hdf5
|
|
shell: pwsh
|
|
|
|
- name: Create options file (Windows_intel)
|
|
uses: "DamianReeves/write-file-action@1d019960841941be46b139298996df6f139cc7a4" # master
|
|
with:
|
|
path: ${{ runner.workspace }}/hdf5/HDF5options.cmake
|
|
write-mode: overwrite
|
|
contents: |
|
|
set (CTEST_DROP_SITE_INIT "my.cdash.org")
|
|
# Change following line to submit to your CDash dashboard to a different CDash project
|
|
#set (CTEST_DROP_LOCATION_INIT "/submit.php?project=HDF5")
|
|
#set (CMAKE_GENERATOR_TOOLSET "Intel C++ Compiler 2024,fortran=ifx")
|
|
set (SITE_BUILDNAME_SUFFIX "${{ steps.set-file-base.outputs.FILE_BASE }}")
|
|
set (MODEL "GHDaily")
|
|
set (GROUP "GHDaily")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE:STRING=config/toolchain/intel.cmake")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_ZLIB_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DLIBAEC_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DPLUGIN_USE_LOCALCONTENT:BOOL=OFF")
|
|
|
|
- name: Run CTest (Windows_intel) with oneapi
|
|
env:
|
|
FC: ${{ steps.setup-fortran.outputs.fc }}
|
|
CC: ${{ steps.setup-fortran.outputs.cc }}
|
|
run: |
|
|
cd "${{ runner.workspace }}/hdf5"
|
|
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-${{ github.event.repository.full_name }}-Intel,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=VS202264,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -O hdf5.log
|
|
shell: pwsh
|
|
continue-on-error: true
|
|
|
|
# Save log files created by CTest script
|
|
- name: Save log (Windows_intel)
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v5
|
|
with:
|
|
name: intel-win-log
|
|
path: ${{ runner.workspace }}/hdf5/hdf5.log
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
build_and_test_linux_intel:
|
|
# Linux (Ubuntu) w/ OneAPI
|
|
#
|
|
name: "Ubuntu Intel"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get Actions
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
|
|
- name: Install Dependencies (Linux_intel)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install ninja-build graphviz curl
|
|
|
|
- name: add oneAPI to env
|
|
uses: fortran-lang/setup-fortran@47809fdb6e637da656ce9ada436527b240c1287f # v1
|
|
id: setup-fortran
|
|
with:
|
|
compiler: intel
|
|
version: '2025.0'
|
|
|
|
- name: Install CMake
|
|
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # latest
|
|
with:
|
|
cmakeVersion: ${{ inputs.cmake_version }}
|
|
ninjaVersion: latest
|
|
|
|
- name: Set file base name (Linux_intel)
|
|
id: set-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
if [[ '${{ inputs.use_environ }}' == 'release' ]]
|
|
then
|
|
SOURCE_NAME_BASE=$(echo "${{ inputs.snap_name }}")
|
|
else
|
|
SOURCE_NAME_BASE=$(echo "hdfsrc")
|
|
fi
|
|
echo "SOURCE_BASE=$SOURCE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
|
|
# Get files created by release script
|
|
- name: Get tgz-tarball (Linux_intel)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: tgz-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: List files for the space (Linux_intel)
|
|
run: |
|
|
ls -l ${{ github.workspace }}
|
|
ls ${{ runner.workspace }}
|
|
|
|
- name: Uncompress source (Linux_intel)
|
|
run: tar -zxvf ${{ github.workspace }}/${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz
|
|
|
|
- name: Symlink script files for the space (Linux_intel)
|
|
uses: ./.github/actions/symlink-ctest-scripts
|
|
with:
|
|
source-base: ${{ steps.set-file-base.outputs.SOURCE_BASE }}
|
|
|
|
- name: List files for the hdf5 (Linux_Linux)
|
|
run: |
|
|
ls ${{ runner.workspace }}/hdf5
|
|
|
|
- name: Create options file (Linux_intel)
|
|
uses: "DamianReeves/write-file-action@1d019960841941be46b139298996df6f139cc7a4" # master
|
|
with:
|
|
path: ${{ runner.workspace }}/hdf5/HDF5options.cmake
|
|
write-mode: overwrite
|
|
contents: |
|
|
set (CTEST_DROP_SITE_INIT "my.cdash.org")
|
|
# Change following line to submit to your CDash dashboard to a different CDash project
|
|
#set (CTEST_DROP_LOCATION_INIT "/submit.php?project=HDF5")
|
|
set (SITE_BUILDNAME_SUFFIX "${{ steps.set-file-base.outputs.FILE_BASE }}")
|
|
set (MODEL "GHDaily")
|
|
set (GROUP "GHDaily")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_ZLIB_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DLIBAEC_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DPLUGIN_USE_LOCALCONTENT:BOOL=OFF")
|
|
|
|
- name: Run CTest (Linux_intel)
|
|
env:
|
|
FC: ${{ steps.setup-fortran.outputs.fc }}
|
|
CC: ${{ steps.setup-fortran.outputs.cc }}
|
|
run: |
|
|
cd "${{ runner.workspace }}/hdf5"
|
|
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-${{ github.event.repository.full_name }}-Intel,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -O hdf5.log
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
# Save log files created by CTest script
|
|
- name: Save log (Linux_intel)
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v5
|
|
with:
|
|
name: intel-ubuntu-log
|
|
path: ${{ runner.workspace }}/hdf5/hdf5.log
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
####### clang builds
|
|
build_and_test_linux_clang:
|
|
# Linux (Ubuntu) w/ clang
|
|
#
|
|
name: "Ubuntu Clang"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get Actions
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
|
|
- name: Install Dependencies (Linux_clang)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install ninja-build graphviz curl
|
|
|
|
- name: check clang version
|
|
shell: bash
|
|
run: |
|
|
which clang
|
|
clang -v
|
|
|
|
- name: Install CMake
|
|
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # latest
|
|
with:
|
|
cmakeVersion: ${{ inputs.cmake_version }}
|
|
ninjaVersion: latest
|
|
|
|
- name: Check CMake Version
|
|
shell: bash
|
|
run: |
|
|
which cmake
|
|
cmake --version
|
|
|
|
- name: Set file base name (Linux_clang)
|
|
id: set-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
if [[ '${{ inputs.use_environ }}' == 'release' ]]
|
|
then
|
|
SOURCE_NAME_BASE=$(echo "${{ inputs.snap_name }}")
|
|
else
|
|
SOURCE_NAME_BASE=$(echo "hdfsrc")
|
|
fi
|
|
echo "SOURCE_BASE=$SOURCE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
|
|
# Get files created by release script
|
|
- name: Get tgz-tarball (Linux_clang)
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
name: tgz-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: List files for the space (Linux_clang)
|
|
run: |
|
|
ls -l ${{ github.workspace }}
|
|
ls ${{ runner.workspace }}
|
|
|
|
- name: Uncompress source (Linux_clang)
|
|
run: tar -zxvf ${{ github.workspace }}/${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz
|
|
|
|
- name: Symlink script files for the space (Linux_clang)
|
|
uses: ./.github/actions/symlink-ctest-scripts
|
|
with:
|
|
source-base: ${{ steps.set-file-base.outputs.SOURCE_BASE }}
|
|
|
|
- name: List files for the hdf5 (Linux_clang)
|
|
run: |
|
|
ls ${{ runner.workspace }}/hdf5
|
|
|
|
- name: Create options file (Linux_clang)
|
|
uses: "DamianReeves/write-file-action@1d019960841941be46b139298996df6f139cc7a4" # master
|
|
with:
|
|
path: ${{ runner.workspace }}/hdf5/HDF5options.cmake
|
|
write-mode: overwrite
|
|
contents: |
|
|
set (CTEST_DROP_SITE_INIT "my.cdash.org")
|
|
# Change following line to submit to your CDash dashboard to a different CDash project
|
|
set (SITE_BUILDNAME_SUFFIX "${{ steps.set-file-base.outputs.FILE_BASE }}")
|
|
set (MODEL "GHDaily")
|
|
set (GROUP "GHDaily")
|
|
#set (CTEST_DROP_LOCATION_INIT "/submit.php?project=HDF5")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE")
|
|
#set (CMAKE_GENERATOR_TOOLSET "clang")
|
|
#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE:STRING=config/toolchain/clang.cmake")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_ZLIB_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DLIBAEC_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DPLUGIN_USE_LOCALCONTENT:BOOL=OFF")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_C_COMPILER:STRING=clang")
|
|
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_CXX_COMPILER:STRING=clang++")
|
|
|
|
- name: Run CTest (Linux_clang)
|
|
run: |
|
|
cd "${{ runner.workspace }}/hdf5"
|
|
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-${{ github.event.repository.full_name }}-Clang,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -O hdf5.log
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
# Save log files created by CTest script
|
|
- name: Save log (Linux_clang)
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v5
|
|
with:
|
|
name: clang-ubuntu-log
|
|
path: ${{ runner.workspace }}/hdf5/hdf5.log
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|