added version 2.11.0 to spack #163
Workflow file for this run
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
# This is a CI workflow for the NCEPLIBS-w3emc project. | |
# | |
# This workflow builds on Linux with different versions of the | |
# dependent packages. | |
# | |
# Ed Hartnett, 1/8/23 | |
name: Linux_versions | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
Linux_versions: | |
runs-on: ubuntu-latest | |
env: | |
FC: gfortran-11 | |
CC: gcc-11 | |
strategy: | |
matrix: | |
bacio-version: [2.4.1, 2.5.0, 2.6.0] | |
steps: | |
- name: checkout-bacio | |
uses: actions/checkout@v3 | |
with: | |
repository: NOAA-EMC/NCEPLIBS-bacio | |
path: bacio | |
ref: v${{ matrix.bacio-version }} | |
- name: cache-bacio | |
id: cache-bacio | |
uses: actions/cache@v3 | |
with: | |
path: ~/bacio | |
key: bacio-${{ runner.os }}-v${{ matrix.bacio-version }} | |
- name: build-bacio | |
if: steps.cache-bacio.outputs.cache-hit != 'true' | |
run: | | |
cd bacio | |
mkdir build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/bacio | |
make -j2 | |
make install | |
- name: checkout-bufr | |
uses: actions/checkout@v3 | |
with: | |
repository: NOAA-EMC/NCEPLIBS-bufr | |
path: bufr | |
ref: v12.0.1 | |
- name: cache-bufr | |
id: cache-bufr | |
uses: actions/cache@v3 | |
with: | |
path: ~/bufr | |
key: bufr-Linux_options_${{ runner.os }}-v12.0.1 | |
- name: build-bufr | |
if: steps.cache-bufr.outputs.cache-hit != 'true' | |
run: | | |
cd bufr | |
mkdir build && cd build | |
cmake -DCMAKE_INSTALL_PREFIX=~/bufr .. | |
make -j2 | |
make install | |
- name: checkout-w3emc | |
uses: actions/checkout@v3 | |
with: | |
path: w3emc | |
- name: build-w3emc | |
run: | | |
cd w3emc | |
mkdir build | |
cd build | |
cmake -DCMAKE_PREFIX_PATH="~/bacio;~/bufr" .. | |
make -j2 | |
- name: test-w3emc | |
run: | | |
cd w3emc/build | |
ctest --output-on-failure --rerun-failed --verbose |