Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,24 @@ permissions:

jobs:
test:
name: Run tests
name: Build (${{ matrix.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: default
make_flags: ""
run_tests: "true"
- name: zarr-only
make_flags: "WITH_ZARR=1"
run_tests: "false"
- name: grib-only
make_flags: "WITH_GRIB=1"
run_tests: "false"
- name: zarr-and-grib
make_flags: "WITH_ZARR=1 WITH_GRIB=1"
run_tests: "false"

steps:
- name: Checkout repository
Expand All @@ -23,7 +39,24 @@ jobs:
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libnetcdf-dev pkg-config
sudo apt-get install -y \
libnetcdf-dev \
libblosc-dev \
liblz4-dev \
libeccodes-dev \
libx11-dev \
libxt-dev \
libxaw7-dev \
libxmu-dev \
libxext-dev \
libxpm-dev \
pkg-config

- name: Build and run tests
run: make test
- name: Build
run: |
make clean
make ${{ matrix.make_flags }} -j"$(nproc)"

- name: Run tests
if: matrix.run_tests == 'true'
run: make ${{ matrix.make_flags }} test
2 changes: 2 additions & 0 deletions src/uterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,13 +836,15 @@ static void cleanup_all(void) {
current_dim_info = NULL;
n_current_dims = 0;
}
#ifdef HAVE_GRIB
if (fileset && fileset->files[0]->file_type == FILE_TYPE_GRIB) {
for (int i = 0; i < n_variables; i++) {
if (var_array && var_array[i]) {
free(var_array[i]);
}
}
}
#endif
free(var_array);
var_array = NULL;

Expand Down