Skip to content

Merge pull request #214 from NOAA-EMC/AlexanderRichert-NOAA-patch-1 #48

Merge pull request #214 from NOAA-EMC/AlexanderRichert-NOAA-patch-1

Merge pull request #214 from NOAA-EMC/AlexanderRichert-NOAA-patch-1 #48

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
env:
FC: gfortran-9
CC: gcc-9
strategy:
matrix:
openmp: [ON, OFF]
steps:
- name: install-dependencies
run: |
sudo apt-get update
sudo apt-get install libmpich-dev
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config
sudo apt-get install libpng-dev
sudo apt-get install libjpeg-dev
- name: checkout-jasper
uses: actions/checkout@v2
with:
repository: jasper-software/jasper
path: jasper
ref: version-2.0.22
- name: build-jasper
run: |
cd jasper
mkdir build-jasper && cd build-jasper
cmake .. -DCMAKE_INSTALL_PREFIX=~
make -j2
make install
- name: checkout-nceplibs
uses: actions/checkout@v2
with:
path: nceplibs
- name: build-nceplibs
run: |
cd nceplibs
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~ -DFLAT=ON -DOPENMP=${{ matrix.openmp }}
make -j2