-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66cbd68
commit d219dc4
Showing
2 changed files
with
105 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# 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-latest | ||
env: | ||
FC: gfortran | ||
CC: gcc | ||
|
||
strategy: | ||
# fail-fast: true | ||
matrix: | ||
config: | ||
- { | ||
options: "-DUSE_IPOLATES" | ||
} | ||
|
||
steps: | ||
|
||
- name: install | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config | ||
sudo apt-get install libpng-dev autotools-dev 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: develop | ||
|
||
- name: build-sp | ||
run: | | ||
cd sp | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=~/sp -DBUILD_8=ON .. | ||
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 | ||
mkdir b | ||
cd b | ||
cmake ${{ matrix.config.options }} .. | ||
make VERBOSE=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters