Skip to content

Tests for C API file grb2_cmd.c #1235

Tests for C API file grb2_cmd.c

Tests for C API file grb2_cmd.c #1235

Workflow file for this run

# This is the Intel workflow for the wgrib2 project. This
# tests with Intel Classic and oneAPI.
#
# Alex Richert, 22 Oct 2024
name: Intel
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-latest
env:
LD_LIBRARY_PATH: "/home/runner/work/wgrib2/wgrib2/nceplibs/jasper/lib/"
strategy:
matrix:
compilers: ["oneapi", "classic"]
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
- name: "Install Intel"
uses: NOAA-EMC/ci-install-intel-toolkit@develop
with:
compiler-setup: ${{ matrix.compilers }}
- name: "Build dependencies"
uses: NOAA-EMC/ci-build-nceplibs@develop
with:
jasper-version: version-4.0.0
ip-version: develop
g2c-version: develop
g2c-cmake-args: -DUSE_AEC=ON
key-prefix: intel-
- name: checkout
uses: actions/checkout@v4
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 -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-ip;$GITHUB_WORKSPACE/nceplibs/jasper;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-g2c" .. -DUSE_OPENMP=OFF -DUSE_G2CLIB=ON -DUSE_IPOLATES=OFF
make VERBOSE=1
ctest --verbose --output-on-failure --rerun-failed