Skip to content

Commit

Permalink
Merge pull request #2847 from K20shores/packaging
Browse files Browse the repository at this point in the history
Use cmake netCDF with target_* for many options
  • Loading branch information
WardF authored Mar 11, 2024
2 parents 902896e + 79cb6c5 commit 5973f3d
Show file tree
Hide file tree
Showing 36 changed files with 917 additions and 1,002 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run_tests_cdash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.10.8, 1.12.2, 1.14.0 ]
hdf5: [ 1.10.8, 1.12.2, 1.14.3 ]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]

steps:

Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.10.8, 1.12.2, 1.14.0 ]
hdf5: [ 1.10.8, 1.12.2, 1.14.3 ]

steps:
- uses: actions/checkout@v3
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/run_tests_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:

build-deps-osx:

runs-on: macos-11
runs-on: macos-12

strategy:
matrix:
hdf5: [ 1.12.2, 1.14.0 ]
hdf5: [ 1.12.2, 1.14.3 ]

steps:

Expand Down Expand Up @@ -52,11 +52,11 @@ jobs:
nc-autotools-osx:

needs: [ nc-cmake-tests-oneoff-osx-shared, nc-cmake-tests-oneoff-osx-static, nc-ac-tests-oneoff-osx ]
runs-on: macos-11
runs-on: macos-12

strategy:
matrix:
hdf5: [ 1.12.2, 1.14.0 ]
hdf5: [ 1.12.2, 1.14.3 ]
use_nc4: [ nc3, nc4 ]
use_dap: [ dap_off, dap_on ]
use_nczarr: [ nczarr_off, nczarr_on ]
Expand Down Expand Up @@ -158,11 +158,11 @@ jobs:
nc-cmake-osx:

needs: [ nc-cmake-tests-oneoff-osx-shared, nc-cmake-tests-oneoff-osx-static, nc-ac-tests-oneoff-osx ]
runs-on: macos-11
runs-on: macos-12

strategy:
matrix:
hdf5: [ 1.12.2, 1.14.0 ]
hdf5: [ 1.12.2, 1.14.3 ]
use_nc4: [ nc3, nc4 ]
use_dap: [ dap_off, dap_on ]
use_nczarr: [ nczarr_off, nczarr_on ]
Expand Down Expand Up @@ -253,11 +253,11 @@ jobs:
nc-ac-tests-oneoff-osx:

needs: build-deps-osx
runs-on: macos-11
runs-on: macos-12

strategy:
matrix:
hdf5: [ 1.12.2, 1.14.0 ]
hdf5: [ 1.12.2, 1.14.3 ]
steps:

- uses: actions/checkout@v3
Expand Down Expand Up @@ -334,11 +334,11 @@ jobs:
nc-cmake-tests-oneoff-osx-shared:

needs: build-deps-osx
runs-on: macos-11
runs-on: macos-12

strategy:
matrix:
hdf5: [ 1.12.2, 1.14.0 ]
hdf5: [ 1.12.2, 1.14.3 ]

steps:

Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
run: |
mkdir build
cd build
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -D ENABLE_DAP_LONG_TESTS=TRUE -DENABLE_XML2=FALSE
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -D ENABLE_DAP_LONG_TESTS=TRUE -DENABLE_LIBXML2=FALSE
- name: Print Summary
shell: bash -l {0}
Expand Down Expand Up @@ -408,11 +408,11 @@ jobs:
nc-cmake-tests-oneoff-osx-static:

needs: build-deps-osx
runs-on: macos-11
runs-on: macos-12

strategy:
matrix:
hdf5: [ 1.12.2, 1.14.0 ]
hdf5: [ 1.12.2, 1.14.3 ]

steps:

Expand Down Expand Up @@ -450,7 +450,7 @@ jobs:
run: |
mkdir build
cd build
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -D ENABLE_DAP_LONG_TESTS=TRUE -DENABLE_XML2=FALSE -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -D ENABLE_DAP_LONG_TESTS=TRUE -DENABLE_LIBXML2=FALSE -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
- name: Print Summary
shell: bash -l {0}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run_tests_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.10.8, 1.12.2, 1.14.0 ]
hdf5: [ 1.10.8, 1.12.2, 1.14.3 ]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]
steps:

- uses: actions/checkout@v3
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/run_tests_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.10.8, 1.12.2, 1.14.0 ]
hdf5: [ 1.10.8, 1.12.2, 1.14.3 ]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]

steps:

Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]
steps:

- uses: actions/checkout@v3
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]
steps:

- uses: actions/checkout@v3
Expand Down Expand Up @@ -399,7 +399,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]

steps:

Expand Down Expand Up @@ -440,7 +440,7 @@ jobs:
run: |
mkdir build
cd build
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -DENABLE_DAP_LONG_TESTS=TRUE -DENABLE_XML2=FALSE
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -DENABLE_DAP_LONG_TESTS=TRUE -DENABLE_LIBXML2=FALSE
- name: Print Summary
shell: bash -l {0}
Expand Down Expand Up @@ -479,7 +479,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]

steps:

Expand Down Expand Up @@ -521,7 +521,7 @@ jobs:
run: |
mkdir build
cd build
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -DENABLE_DAP_LONG_TESTS=TRUE -DENABLE_XML2=FALSE -DBUILD_SHARED_LIBS=FALSE -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -DENABLE_DAP_LONG_TESTS=TRUE -DENABLE_LIBXML2=FALSE -DBUILD_SHARED_LIBS=FALSE -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
- name: Print Summary
shell: bash -l {0}
Expand Down Expand Up @@ -561,7 +561,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.14.0 ]
hdf5: [ 1.14.3 ]

steps:

Expand Down Expand Up @@ -638,7 +638,7 @@ jobs:

strategy:
matrix:
hdf5: [1.10.8, 1.12.2, 1.14.0 ]
hdf5: [1.10.8, 1.12.2, 1.14.3 ]
use_nc4: [ nc3, nc4 ]
use_dap: [ dap_off, dap_on ]
use_nczarr: [ nczarr_off, nczarr_on ]
Expand Down Expand Up @@ -802,7 +802,7 @@ jobs:

strategy:
matrix:
hdf5: [ 1.10.8, 1.12.2, 1.14.0 ]
hdf5: [ 1.10.8, 1.12.2, 1.14.3 ]
use_nc4: [ nc3, nc4 ]
use_dap: [ dap_off, dap_on ]
use_nczarr: [ nczarr_off, nczarr_on ]
Expand Down
Loading

0 comments on commit 5973f3d

Please sign in to comment.