-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,7 +111,7 @@ jobs: | |
- name: Run ctest script (Windows) | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH,LOCAL_SUBMIT=ON,BUILD_GENERATOR=VS202264,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=VS202264,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
shell: bash | ||
continue-on-error: true | ||
|
||
|
@@ -200,7 +200,7 @@ jobs: | |
- name: Run ctest (Linux) | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-GCC,LOCAL_SUBMIT=ON,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-GCC,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
shell: bash | ||
continue-on-error: true | ||
|
||
|
@@ -302,7 +302,7 @@ jobs: | |
id: run-ctest | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Clang,LOCAL_SUBMIT=ON,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Clang,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
shell: bash | ||
continue-on-error: true | ||
|
||
|
@@ -387,7 +387,7 @@ jobs: | |
- name: Run ctest (Linux S3) | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-S3,LOCAL_SUBMIT=ON,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-S3,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
shell: bash | ||
continue-on-error: true | ||
|
||
|
@@ -495,7 +495,7 @@ jobs: | |
SIGNTOOLDIR: ${{ github.workspace }}/Microsoft.Windows.SDK.BuildTools/bin/10.0.22621.0/x64 | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Intel,LOCAL_SUBMIT=ON,BUILD_GENERATOR=VS202264,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Intel,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=VS202264,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
shell: pwsh | ||
continue-on-error: true | ||
|
||
|
@@ -590,7 +590,7 @@ jobs: | |
CXX: ${{ steps.setup-fortran.outputs.cxx }} | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Intel,LOCAL_SUBMIT=ON,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Intel,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
shell: bash | ||
continue-on-error: true | ||
|
||
|
@@ -601,3 +601,201 @@ jobs: | |
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_win_clang: | ||
# Windows w/ clang + CMake | ||
# | ||
name: "Windows ClangCL CTest" | ||
runs-on: windows-latest | ||
steps: | ||
- name: Install Dependencies (Windows_clang) | ||
run: choco install ninja | ||
|
||
- name: add clang to env | ||
uses: KyleMayes/[email protected] | ||
Check warning Code scanning / Scorecard Pinned-Dependencies Medium
score is 1: third-party GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io Click Remediation section below for further remediation help |
||
id: setup-clang | ||
with: | ||
env: true | ||
version: '18' | ||
|
||
- name: Set file base name (Windows_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 | ||
shell: bash | ||
|
||
# Get files created by release script | ||
- name: Get zip-tarball (Windows_clang) | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
name: zip-tarball | ||
path: ${{ github.workspace }} | ||
|
||
- name: using powershell | ||
shell: pwsh | ||
run: Get-Location | ||
|
||
- name: List files for the space (Windows_clang) | ||
run: | | ||
Get-ChildItem -Path ${{ github.workspace }} | ||
Get-ChildItem -Path ${{ runner.workspace }} | ||
shell: pwsh | ||
|
||
- name: Uncompress source (Windows_clang) | ||
working-directory: ${{ github.workspace }} | ||
run: 7z x ${{ steps.set-file-base.outputs.FILE_BASE }}.zip | ||
shell: bash | ||
|
||
- name: Copy script files for the space (Windows_clang) | ||
run: | | ||
Copy-Item -Path ${{ runner.workspace }}/hdf5/${{ steps.set-file-base.outputs.SOURCE_BASE }}/config/cmake/scripts/CTestScript.cmake -Destination ${{ runner.workspace }}/hdf5/ | ||
Copy-Item -Path ${{ runner.workspace }}/hdf5/${{ steps.set-file-base.outputs.SOURCE_BASE }}/config/cmake/scripts/HDF5config.cmake -Destination ${{ runner.workspace }}/hdf5/ | ||
shell: pwsh | ||
|
||
- name: List files for the hdf5 (Windows_clang) | ||
run: | | ||
Get-ChildItem -Path ${{ runner.workspace }}/hdf5 | ||
shell: pwsh | ||
|
||
- name: Create options file (Windows_clang) | ||
uses: "DamianReeves/write-file-action@master" | ||
Check warning Code scanning / Scorecard Pinned-Dependencies Medium
score is 1: third-party GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io Click Remediation section below for further remediation help |
||
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 (CMAKE_GENERATOR_TOOLSET "ClangCL") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE") | ||
#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_Z_LIB_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") | ||
- name: Run ctest (Windows_clang) with clang | ||
env: | ||
BINSIGN: ${{ needs.check-secret.outputs.sign-state }} | ||
SIGNTOOLDIR: ${{ github.workspace }}/Microsoft.Windows.SDK.BuildTools/bin/10.0.22621.0/x64 | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Clang,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=VS202264,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -O hdf5.log | ||
shell: pwsh | ||
continue-on-error: true | ||
|
||
# Save log files created by ctest script | ||
- name: Save log (Windows_clang) | ||
uses: actions/upload-artifact@v4 | ||
Check warning Code scanning / Scorecard Pinned-Dependencies Medium
score is 1: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io Click Remediation section below for further remediation help |
||
with: | ||
name: clang-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_clang: | ||
# Linux (Ubuntu) w/ clang + CMake | ||
# | ||
name: "Ubuntu Clang CMake" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install CMake Dependencies (Linux_clang) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ninja-build doxygen graphviz curl libncurses5 | ||
- name: add clang to env | ||
uses: KyleMayes/[email protected] | ||
Check warning Code scanning / Scorecard Pinned-Dependencies Medium
score is 1: third-party GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io Click Remediation section below for further remediation help |
||
id: setup-clang | ||
with: | ||
env: true | ||
version: '18' | ||
|
||
- 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@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
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: Copy script files for the space (Linux_clang) | ||
run: | | ||
cp ${{ github.workspace }}/${{ steps.set-file-base.outputs.SOURCE_BASE }}/config/cmake/scripts/CTestScript.cmake ${{ runner.workspace }}/hdf5 | ||
cp ${{ github.workspace }}/${{ steps.set-file-base.outputs.SOURCE_BASE }}/config/cmake/scripts/HDF5config.cmake ${{ runner.workspace }}/hdf5 | ||
- name: List files for the hdf5 (Linux_clang) | ||
run: | | ||
ls ${{ runner.workspace }}/hdf5 | ||
- name: Create options file (Linux_clang) | ||
uses: "DamianReeves/write-file-action@master" | ||
Check warning Code scanning / Scorecard Pinned-Dependencies Medium
score is 1: third-party GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io Click Remediation section below for further remediation help |
||
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 (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_Z_LIB_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") | ||
- name: Run ctest (Linux_clang) | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5" | ||
ctest -S HDF5config.cmake,CTEST_SITE_EXT=GH-Clang,LOCAL_SUBMIT=ON,NINJA=TRUE,BUILD_GENERATOR=Unix,CTEST_SOURCE_NAME=${{ steps.set-file-base.outputs.SOURCE_BASE }} -C Release -VV -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@v4 | ||
Check warning Code scanning / Scorecard Pinned-Dependencies Medium
score is 1: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io Click Remediation section below for further remediation help |
||
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` |