forked from HDFGroup/hdf4
-
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.
- Loading branch information
Showing
323 changed files
with
2,937 additions
and
3,184 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: netCDF dev | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- '.github/CODEOWNERS' | ||
- 'release_notes/**' | ||
- '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 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install System dependencies | ||
run: | | ||
sudo apt update | ||
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: Checkout HDF4 | ||
uses: actions/checkout@v4.1.1 | ||
- name: Install HDF4 | ||
run: | | ||
./autogen.sh | ||
./configure --prefix=/usr/local --disable-netcdf --disable-netcdf-tools --enable-shared --with-szlib | ||
make -j | ||
sudo make install -j | ||
- name: Checkout HDF5 | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
repository: HDFGroup/hdf5 | ||
path: hdf5 | ||
- name: Install HDF5 | ||
run: | | ||
cd hdf5 | ||
./autogen.sh | ||
./configure --prefix=/usr/local --disable-tests --disable-static --enable-shared --enable-hl --with-szlib | ||
make -j | ||
sudo make install -j | ||
- name: Checkout netCDF | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
repository: unidata/netcdf-c | ||
path: netcdf-c | ||
- name: Test netCDF | ||
run: | | ||
cd netcdf-c | ||
autoreconf -if | ||
CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ./configure --enable-hdf5 --enable-hdf4 --enable-hdf4-file-tests --enable-dap --disable-dap-remote-tests --enable-external-server-tests | ||
cat config.log | ||
cat libnetcdf.settings | ||
CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make -j | ||
CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check TESTS="" -j | ||
LD_LIBRARY_PATH="/home/runner/work/hdf4/hdf4/netcdf-c/liblib/.libs:/usr/local/lib:${LD_LIBRARY_PATH}" | ||
CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check -j |
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,82 @@ | ||
name: hdf4 dev autotools nvhpc | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
build_mode: | ||
description: "release vs. debug build" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
nvhpc_build_and_test: | ||
name: "nvhpc ${{ inputs.build_mode }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install autoconf automake libtool libtool-bin libaec-dev | ||
- name: Install NVHPC | ||
shell: bash | ||
run: | | ||
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg | ||
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list | ||
sudo apt-get update -y | ||
sudo apt-get install -y nvhpc-23-9 | ||
echo "NVHPCSDK=/opt/nvidia/hpc_sdk" >> $GITHUB_ENV | ||
echo "OMPI_CC=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvc" >> $GITHUB_ENV | ||
echo "OMPI_FC=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvfortran" >> $GITHUB_ENV | ||
echo "CC=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvc" >> $GITHUB_ENV | ||
echo "FC=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvfortran" >> $GITHUB_ENV | ||
echo "LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/lib" >> $GITHUB_ENV | ||
echo "DESTDIR=/tmp" >> $GITHUB_ENV | ||
- name: Autotools Configure | ||
shell: bash | ||
run: | | ||
export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin:$PATH | ||
sh ./autogen.sh | ||
mkdir "${{ runner.workspace }}/build" | ||
cd "${{ runner.workspace }}/build" | ||
$GITHUB_WORKSPACE/configure \ | ||
FCFLAGS="-fPIC -fortranlibs" \ | ||
--enable-build-mode=${{ inputs.build_mode }} \ | ||
--disable-fortran \ | ||
--enable-shared \ | ||
#cat config.log | ||
# BUILD | ||
- name: Autotools Build | ||
shell: bash | ||
run: | | ||
export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin:$PATH | ||
make -j3 | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
# RUN TESTS | ||
# NORMAL | ||
- name: Autotools Run Tests | ||
run: | | ||
export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin:$PATH | ||
make check -j | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
# INSTALL (note that this runs even when we don't run the tests) | ||
- name: Autotools Install | ||
run: | | ||
export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin:$PATH | ||
make install | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
# - name: Autotools Verify Install | ||
# run: | | ||
# export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin:$PATH | ||
# make check-install | ||
# working-directory: ${{ runner.workspace }}/build |
Oops, something went wrong.