-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add remaining CMake workflow versions of autotools workflows #4998
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,37 +15,66 @@ on: | |
- 'COPYING**' | ||
- '**.md' | ||
|
||
permissions: | ||
contents: read | ||
|
||
# Using concurrency to cancel any in-progress job or run | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build hdfeos5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Install System dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ninja-build | ||
sudo apt install libssl3 libssl-dev libcurl4 | ||
sudo apt install -y libaec-dev zlib1g-dev automake autoconf libcurl4-openssl-dev libjpeg-dev wget curl bzip2 m4 flex bison cmake libzip-dev doxygen openssl libtool libtool-bin | ||
|
||
- name: Install Autotools Dependencies (Linux) | ||
- name: Checkout HDF5 | ||
uses: actions/[email protected] | ||
|
||
- name: CMake Configure | ||
run: | | ||
sudo apt update | ||
sudo apt install automake autoconf libtool libtool-bin | ||
mkdir "${{ runner.workspace }}/build" | ||
cd "${{ runner.workspace }}/build" | ||
cmake -C $GITHUB_WORKSPACE/config/cmake/cacheinit.cmake \ | ||
-G Ninja \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DHDF5_ENABLE_PARALLEL:BOOL=OFF \ | ||
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \ | ||
-DHDF5_BUILD_FORTRAN=OFF \ | ||
-DHDF5_BUILD_JAVA=OFF \ | ||
-DHDF5_BUILD_DOC=OFF \ | ||
-DLIBAEC_USE_LOCALCONTENT=OFF \ | ||
-DZLIB_USE_LOCALCONTENT=OFF \ | ||
-DH5_NO_DEPRECATED_SYMBOLS:BOOL=OFF \ | ||
-DBUILD_TESTING:BOOL=OFF \ | ||
-DDEFAULT_API_VERSION:STRING=v16 \ | ||
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local \ | ||
$GITHUB_WORKSPACE | ||
shell: bash | ||
|
||
- name: CMake Build | ||
run: cmake --build . --parallel 3 --config Release | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
- name: Install HDF5 | ||
run: | | ||
./autogen.sh | ||
./configure --prefix=/usr/local --disable-tests --with-default-api-version=v16 | ||
make | ||
sudo make install | ||
sudo cmake --install . --config Release --prefix="/usr/local" | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
- name: Install HDF-EOS5 | ||
run: | | ||
wget -O HDF-EOS5.2.0.tar.gz "https://git.earthdata.nasa.gov/projects/DAS/repos/hdfeos5/raw/hdf-eos5-2.0-src.tar.gz?at=refs%2Fheads%2FHDFEOS5_2.0" | ||
tar zxvf HDF-EOS5.2.0.tar.gz | ||
cd hdf-eos5-2.0 | ||
./configure CC=/usr/local/bin/h5cc --prefix=/usr/local/ --enable-install-include | ||
make | ||
make check | ||
LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check | ||
sudo make install |
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,79 @@ | ||
name: hdf5 dev parallel special CMake CI | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
build_mode: | ||
description: "release vs. debug build" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
# | ||
# The GitHub runners are inadequate for running parallel HDF5 tests, | ||
# so we catch most issues in daily testing. What we have here is just | ||
# a compile check to make sure nothing obvious is broken. | ||
# A workflow that builds the library | ||
# Parallel Linux (Ubuntu) w/ gcc + CMake | ||
# | ||
CMake_build_parallel_werror: | ||
name: "Parallel GCC-${{ inputs.build_mode }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install Linux Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ninja-build doxygen graphviz | ||
sudo apt install libssl3 libssl-dev libcurl4 libcurl4-openssl-dev | ||
sudo apt install gcc-12 g++-12 gfortran-12 | ||
sudo apt install libaec0 libaec-dev | ||
sudo apt install openmpi-bin openmpi-common mpi-default-dev | ||
echo "CC=mpicc" >> $GITHUB_ENV | ||
echo "FC=mpif90" >> $GITHUB_ENV | ||
|
||
- name: CMake Configure | ||
shell: bash | ||
run: | | ||
mkdir "${{ runner.workspace }}/build" | ||
cd "${{ runner.workspace }}/build" | ||
CC=mpicc cmake -C $GITHUB_WORKSPACE/config/cmake/cacheinit.cmake \ | ||
--log-level=VERBOSE \ | ||
-DCMAKE_BUILD_TYPE=${{ inputs.build_mode }} \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DHDF5_ENABLE_ALL_WARNINGS=ON \ | ||
-DHDF5_ENABLE_WARNINGS_AS_ERRORS=ON \ | ||
-DHDF5_ENABLE_PARALLEL:BOOL=ON \ | ||
-DHDF5_ENABLE_SUBFILING_VFD:BOOL=ON \ | ||
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \ | ||
-DHDF5_BUILD_FORTRAN=OFF \ | ||
-DHDF5_BUILD_JAVA=OFF \ | ||
-DLIBAEC_USE_LOCALCONTENT=OFF \ | ||
-DZLIB_USE_LOCALCONTENT=OFF \ | ||
-DHDF5_ENABLE_MIRROR_VFD:BOOL=OFF \ | ||
-DHDF5_ENABLE_DIRECT_VFD:BOOL=ON \ | ||
-DHDF5_ENABLE_ROS3_VFD:BOOL=OFF \ | ||
-DHDF5_PACK_EXAMPLES:BOOL=OFF \ | ||
$GITHUB_WORKSPACE | ||
|
||
# BUILD | ||
- name: CMake Build | ||
run: cmake --build . --parallel 3 --config ${{ inputs.build_mode }} | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
# | ||
# RUN TESTS | ||
# | ||
- name: CMake Run Tests | ||
run: ctest . -E MPI_TEST --parallel 2 -C ${{ inputs.build_mode }} -V | ||
working-directory: ${{ runner.workspace }}/build | ||
if: ${{ matrix.run_tests && (inputs.thread_safety != 'TS') }} | ||
|
||
- name: CMake Run Parallel Tests | ||
run: ctest . -R MPI_TEST -C ${{ inputs.build_mode }} -V | ||
working-directory: ${{ runner.workspace }}/build | ||
if: ${{ matrix.run_tests && (inputs.thread_safety != 'TS') }} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: hdf5 dev PAR CMake CI | ||
name: hdf5 dev parallel CMake CI | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -17,7 +17,7 @@ jobs: | |
# so we catch most issues in daily testing. What we have here is just | ||
# a compile check to make sure nothing obvious is broken. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
# A workflow that builds the library | ||
# Parallel Linux (Ubuntu) w/ gcc + Autotools | ||
# Parallel Linux (Ubuntu) w/ gcc + CMake | ||
# | ||
CMake_build_parallel: | ||
name: "Parallel GCC-${{ inputs.build_mode }}" | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is no longer valid @byrnHDF / @derobins