forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge examples and workflows from develop (HDFGroup#3918)
- Loading branch information
Showing
791 changed files
with
235,132 additions
and
2,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip-ci')" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4.1.1 | ||
- name: Run clang-format style check for C and Java code | ||
uses: DoozyX/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,17 +21,17 @@ jobs: | |
permissions: | ||
contents: write # In order to allow EndBug/add-and-commit to commit changes | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Fix C and Java formatting issues detected by clang-format | ||
uses: DoozyX/[email protected] | ||
uses: DoozyX/clang-format-lint-action@9ea72631b74e61ce337d0839a90e76180e997283 # v0.13 | ||
with: | ||
source: '.' | ||
extensions: 'c,h,cpp,hpp,java' | ||
clangFormatVersion: 13 | ||
inplace: True | ||
style: file | ||
exclude: './config ./hl/src/H5LTanalyze.c ./hl/src/H5LTparse.c ./hl/src/H5LTparse.h ./src/H5Epubgen.h ./src/H5Einit.h ./src/H5Eterm.h ./src/H5Edefin.h ./src/H5version.h ./src/H5overflow.h' | ||
- uses: EndBug/add-and-commit@v9 | ||
- uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # v9.1.3 | ||
with: | ||
author_name: github-actions | ||
author_email: 41898282+github-actions[bot]@users.noreply.github.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
run: choco install ninja | ||
|
||
- name: Enable Developer Command Prompt | ||
uses: ilammy/msvc-dev-cmd@v1.12.1 | ||
uses: ilammy/msvc-dev-cmd@v1.13.0 | ||
|
||
- name: Set file base name (Windows) | ||
id: set-file-base | ||
|
@@ -36,7 +36,7 @@ jobs: | |
|
||
# Get files created by release script | ||
- name: Get zip-tarball (Windows) | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: zip-tarball | ||
path: ${{ github.workspace }} | ||
|
@@ -72,7 +72,7 @@ jobs: | |
Copy-Item -Path ${{ runner.workspace }}/hdf5/hdfsrc/README.md -Destination ${{ runner.workspace }}/build114/hdf5/ | ||
Copy-Item -Path ${{ runner.workspace }}/hdf5/build114/ci-StdShar-MSVC/* -Destination ${{ runner.workspace }}/build114/hdf5/ -Include *.zip | ||
cd "${{ runner.workspace }}/build114" | ||
7z a -tzip ${{ steps.set-file-base.outputs.FILE_BASE }}-win_vs2022.zip hdf5 | ||
7z a -tzip ${{ steps.set-file-base.outputs.FILE_BASE }}-win-vs2022_cl.zip hdf5 | ||
shell: pwsh | ||
|
||
- name: List files in the space (Windows) | ||
|
@@ -85,8 +85,8 @@ jobs: | |
- name: Save published binary (Windows) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: zip-vs2022-binary | ||
path: ${{ runner.workspace }}/build114/${{ steps.set-file-base.outputs.FILE_BASE }}-win_vs2022.zip | ||
name: zip-vs2022_cl-binary | ||
path: ${{ runner.workspace }}/build114/${{ steps.set-file-base.outputs.FILE_BASE }}-win-vs2022_cl.zip | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | ||
|
||
build_and_test_linux: | ||
|
@@ -106,7 +106,7 @@ jobs: | |
# Get files created by release script | ||
- name: Get tgz-tarball (Linux) | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: tgz-tarball | ||
path: ${{ github.workspace }} | ||
|
@@ -135,7 +135,7 @@ jobs: | |
cp ${{ runner.workspace }}/hdf5/hdfsrc/README.md ${{ runner.workspace }}/build114/hdf5 | ||
cp ${{ runner.workspace }}/hdf5/build114/ci-StdShar-GNUC/*.tar.gz ${{ runner.workspace }}/build114/hdf5 | ||
cd "${{ runner.workspace }}/build114" | ||
tar -zcvf ${{ steps.set-file-base.outputs.FILE_BASE }}-ubuntu-2204.tar.gz hdf5 | ||
tar -zcvf ${{ steps.set-file-base.outputs.FILE_BASE }}-ubuntu-2204_gcc.tar.gz hdf5 | ||
shell: bash | ||
|
||
- name: List files in the space (Linux) | ||
|
@@ -147,8 +147,8 @@ jobs: | |
- name: Save published binary (Linux) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tgz-ubuntu-2204-binary | ||
path: ${{ runner.workspace }}/build114/${{ steps.set-file-base.outputs.FILE_BASE }}-ubuntu-2204.tar.gz | ||
name: tgz-ubuntu-2204_gcc-binary | ||
path: ${{ runner.workspace }}/build114/${{ steps.set-file-base.outputs.FILE_BASE }}-ubuntu-2204_gcc.tar.gz | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | ||
|
||
# Save doxygen files created by ctest script | ||
|
@@ -176,7 +176,7 @@ jobs: | |
# Get files created by release script | ||
- name: Get tgz-tarball (MacOS) | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: tgz-tarball | ||
path: ${{ github.workspace }} | ||
|
@@ -227,6 +227,164 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tgz-osx12-binary | ||
path: ${{ runner.workspace }}/build114/${{ steps.set-file-base.outputs.FILE_BASE }}-osx12.tar.gz | ||
path: ${{ runner.workspace }}/build/${{ steps.set-file-base.outputs.FILE_BASE }}-osx12.tar.gz | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | ||
|
||
####### intel builds | ||
build_and_test_win_intel: | ||
# Windows w/ OneAPI + CMake | ||
# | ||
name: "Windows Intel CTest" | ||
runs-on: windows-latest | ||
steps: | ||
- name: Install Dependencies (Windows_intel) | ||
run: choco install ninja | ||
|
||
- name: add oneAPI to env | ||
uses: fortran-lang/setup-fortran@v1 | ||
id: setup-fortran | ||
with: | ||
compiler: intel | ||
version: '2023.2' | ||
|
||
- name: Enable Developer Command Prompt | ||
uses: ilammy/[email protected] | ||
|
||
- 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 | ||
shell: bash | ||
|
||
# Get files created by release script | ||
- name: Get zip-tarball (Windows_intel) | ||
uses: actions/download-artifact@v4 | ||
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: Run ctest (Windows_intel) with oneapi | ||
env: | ||
FC: ${{ steps.setup-fortran.outputs.fc }} | ||
CC: ${{ steps.setup-fortran.outputs.cc }} | ||
CXX: ${{ steps.setup-fortran.outputs.cxx }} | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5/hdfsrc" | ||
cmake --workflow --preset=ci-StdShar-Intel --fresh | ||
shell: pwsh | ||
|
||
- name: Publish binary (Windows_intel) | ||
id: publish-ctest-binary | ||
run: | | ||
mkdir "${{ runner.workspace }}/build" | ||
mkdir "${{ runner.workspace }}/build/hdf5" | ||
Copy-Item -Path ${{ runner.workspace }}/hdf5/hdfsrc/COPYING -Destination ${{ runner.workspace }}/build/hdf5/ | ||
Copy-Item -Path ${{ runner.workspace }}/hdf5/hdfsrc/COPYING_LBNL_HDF5 -Destination ${{ runner.workspace }}/build/hdf5/ | ||
Copy-Item -Path ${{ runner.workspace }}/hdf5/hdfsrc/README.md -Destination ${{ runner.workspace }}/build/hdf5/ | ||
Copy-Item -Path ${{ runner.workspace }}/hdf5/build/ci-StdShar-Intel/* -Destination ${{ runner.workspace }}/build/hdf5/ -Include *.zip | ||
cd "${{ runner.workspace }}/build" | ||
7z a -tzip ${{ steps.set-file-base.outputs.FILE_BASE }}-win-vs2022_intel.zip hdf5 | ||
shell: pwsh | ||
|
||
- name: List files in the space (Windows_intel) | ||
run: | | ||
Get-ChildItem -Path ${{ github.workspace }} | ||
Get-ChildItem -Path ${{ runner.workspace }} | ||
shell: pwsh | ||
|
||
# Save files created by ctest script | ||
- name: Save published binary (Windows_intel) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: zip-vs2022_intel-binary | ||
path: ${{ runner.workspace }}/build/${{ steps.set-file-base.outputs.FILE_BASE }}-win-vs2022_intel.zip | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | ||
|
||
build_and_test_linux_intel: | ||
# Linux (Ubuntu) w/ OneAPI + CMake | ||
# | ||
name: "Ubuntu Intel CMake" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install CMake Dependencies (Linux_intel) | ||
run: sudo apt-get install ninja-build doxygen graphviz | ||
|
||
- name: add oneAPI to env | ||
uses: fortran-lang/setup-fortran@v1 | ||
id: setup-fortran | ||
with: | ||
compiler: intel | ||
version: '2023.2' | ||
|
||
- 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 | ||
# Get files created by release script | ||
- name: Get tgz-tarball (Linux_intel) | ||
uses: actions/download-artifact@v4 | ||
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: Run ctest (Linux_intel) | ||
env: | ||
FC: ${{ steps.setup-fortran.outputs.fc }} | ||
CC: ${{ steps.setup-fortran.outputs.cc }} | ||
CXX: ${{ steps.setup-fortran.outputs.cxx }} | ||
run: | | ||
cd "${{ runner.workspace }}/hdf5/hdfsrc" | ||
cmake --workflow --preset=ci-StdShar-Intel --fresh | ||
shell: bash | ||
|
||
- name: Publish binary (Linux_intel) | ||
id: publish-ctest-binary | ||
run: | | ||
mkdir "${{ runner.workspace }}/build" | ||
mkdir "${{ runner.workspace }}/build/hdf5" | ||
cp ${{ runner.workspace }}/hdf5/hdfsrc/COPYING ${{ runner.workspace }}/build/hdf5 | ||
cp ${{ runner.workspace }}/hdf5/hdfsrc/COPYING_LBNL_HDF5 ${{ runner.workspace }}/build/hdf5 | ||
cp ${{ runner.workspace }}/hdf5/hdfsrc/README.md ${{ runner.workspace }}/build/hdf5 | ||
cp ${{ runner.workspace }}/hdf5/build/ci-StdShar-Intel/*.tar.gz ${{ runner.workspace }}/build/hdf5 | ||
cd "${{ runner.workspace }}/build" | ||
tar -zcvf ${{ steps.set-file-base.outputs.FILE_BASE }}-ubuntu-2204_intel.tar.gz hdf5 | ||
shell: bash | ||
|
||
- name: List files in the space (Linux_intel) | ||
run: | | ||
ls ${{ github.workspace }} | ||
ls -l ${{ runner.workspace }} | ||
# Save files created by ctest script | ||
- name: Save published binary (Linux_intel) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tgz-ubuntu-2204_intel-binary | ||
path: ${{ runner.workspace }}/build/${{ steps.set-file-base.outputs.FILE_BASE }}-ubuntu-2204_intel.tar.gz | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.