Skip to content

Merge pull request #294 from AlysonStahl-NOAA/as_version #52

Merge pull request #294 from AlysonStahl-NOAA/as_version

Merge pull request #294 from AlysonStahl-NOAA/as_version #52

Workflow file for this run

# This is the Linux_options workflow for the wgrib2 project. This
# tests different wgrib2 build options.
#
# Ed Hartnett, 3/27/24
name: Linux_options
on:
push:
branches:
- develop
pull_request:
branches:
- develop
# Cancel in-progress workflows when pushing to a branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Linux_options:
runs-on: ubuntu-24.04
strategy:
# fail-fast: true
matrix:
config:
- {
options: "-DUSE_IPOLATES=ON -DBLA_VENDOR=OpenBLAS"
}
- {
options: "-DUSE_AEC=ON"
}
- {
options: "-DUSE_NETCDF=ON"
}
- {
options: "-DBUILD_WGRIB=ON"
}
- {
options: "-DUSE_OPENJPEG=ON"
}
gcc-version: [12]
include:
- gcc-version: 14
steps:
- name: install
run: |
sudo apt-get update
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config \
libpng-dev autotools-dev autoconf libaec-dev libopenblas-serial-dev \
libopenjp2-7 libopenjp2-7-dev
if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then
sudo apt-get install gcc-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
fi
echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
echo "FC=gfortran-${{ matrix.gcc-version }}" >> $GITHUB_ENV
- name: "Build dependencies"
uses: NOAA-EMC/ci-build-nceplibs@develop
with:
ip-version: develop
g2c-version: develop
g2c-cmake-args: -DUSE_OpenJPEG=ON -DUSE_Jasper=OFF
- name: checkout
uses: actions/checkout@v2
with:
path: wgrib2
- name: build
run: |
cd wgrib2
mkdir b
cd b
export CFLAGS='-I/home/runner/work/wgrib2/wgrib2/nceplibs/NCEPLIBS-g2c/include'
cmake ${{ matrix.config.options }} -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-ip;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-g2c" ..
make VERBOSE=1
ctest --verbose --output-on-failure --rerun-failed