summaryrefslogtreecommitdiffstats
path: root/.github/workflows/netcdf.yml
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-07 12:52:12 (GMT)
committerGitHub <noreply@github.com>2023-06-07 12:52:12 (GMT)
commit8304ce006ed06807545a15998bbe782c663afd2f (patch)
tree49fa407c7a0182977976944ccab9c185f790e7f2 /.github/workflows/netcdf.yml
parent2ceccedc54ed9f822fd0da71f2f7c5c73bcb2728 (diff)
downloadhdf5-8304ce006ed06807545a15998bbe782c663afd2f.zip
hdf5-8304ce006ed06807545a15998bbe782c663afd2f.tar.gz
hdf5-8304ce006ed06807545a15998bbe782c663afd2f.tar.bz2
Bring HDF-EOS5 and netCDF actions from develop (#3064)
Diffstat (limited to '.github/workflows/netcdf.yml')
-rw-r--r--.github/workflows/netcdf.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/netcdf.yml b/.github/workflows/netcdf.yml
new file mode 100644
index 0000000..0ec7541
--- /dev/null
+++ b/.github/workflows/netcdf.yml
@@ -0,0 +1,53 @@
+name: netCDF
+
+on:
+ workflow_dispatch:
+ push:
+ pull_request:
+ branches: [ hdf5_1_12 ]
+ paths-ignore:
+ - '.github/CODEOWNERS'
+ - '.github/FUNDING.yml'
+ - 'doc/**'
+ - 'release_docs/**'
+ - 'ACKNOWLEDGEMENTS'
+ - 'COPYING**'
+ - '**.md'
+
+# Using concurrency to cancel any in-progress job or run
+concurrency:
+ group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }}
+ 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 HDF5
+ uses: actions/checkout@v3
+ - name: Install HDF5
+ run: |
+ ./autogen.sh
+ ./configure --prefix=/usr/local --disable-static --enable-shared --enable-hl --with-szlib
+ make -j
+ sudo make install -j
+ - name: Checkout netCDF
+ uses: actions/checkout@v3
+ 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-dap --disable-dap-remote-tests --enable-doxygen --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/hdf5/hdf5/netcdf-c/liblib/.libs:/usr/local/lib:${LD_LIBRARY_PATH}"
+ CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check -j