Skip to content

adding developer workflow #3

adding developer workflow

adding developer workflow #3

Workflow file for this run

# This is the developer workflow for the wgrib2 project.
#
# Kyle Gerheiser, Ed Hartnett
name: developer
on:
push:
branches:
- feature/cmake
- develop
pull_request:
branches:
- feature/cmake
- develop
jobs:
developer:
runs-on: ubuntu-latest
env:
FC: gfortran
CC: gcc
steps:
- name: install-netcdf
run: |
sudo apt-get update
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config
- name: install-png
run: |
sudo apt-get install libpng-dev
- name: install-autotools
run: |
sudo apt-get install autotools-dev
sudo apt-get install autoconf
- name: checkout-jasper
uses: actions/checkout@v2
with:
repository: jasper-software/jasper
path: jasper
ref: version-1.900.1
- name: build-jasper
if: steps.cache-jasper.outputs.cache-hit != 'true'
run: |
cd jasper
./configure --prefix=$HOME/Jasper
make
make install
- name: checkout-sp
uses: actions/checkout@v2
with:
repository: NOAA-EMC/NCEPLIBS-sp
path: sp
ref: v2.3.3
- name: build-sp
run: |
cd sp
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=~/sp ..
make -j2
make install
- name: checkout-ip2
uses: actions/checkout@v2
with:
repository: NOAA-EMC/NCEPLIBS-ip2
path: ip2
ref: develop
- name: build-ip2
run: |
cd ip2
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/ip2 -DCMAKE_PREFIX_PATH=~
make -j2
make install
- name: checkout
uses: actions/checkout@v2
with:
path: wgrib2
- name: build
run: |
cd wgrib2
make VERBOSE=1