forked from NOAA-EMC/NCEPLIBS-w3emc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NOAA-EMC#156 from NOAA-EMC/ejh_build_4
Added BUILD_4 and BUILD_D options to build, removed _8 version of library
- Loading branch information
Showing
9 changed files
with
172 additions
and
237 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
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,70 @@ | ||
# This is a CI workflow for the NCEPLIBS-w3emc project. | ||
# | ||
# This workflow builds on Linux with different CMake build options. | ||
# | ||
# Ed Hartnett, 1/8/23 | ||
name: Linux_options | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths-ignore: | ||
- README.md | ||
pull_request: | ||
branches: | ||
- develop | ||
paths-ignore: | ||
- README.md | ||
|
||
jobs: | ||
Linux_options: | ||
runs-on: ubuntu-latest | ||
env: | ||
FC: gfortran-11 | ||
CC: gcc-11 | ||
strategy: | ||
matrix: | ||
options: [-DBUILD_D=OFF, -DBUILD_4=OFF] | ||
|
||
steps: | ||
|
||
- name: checkout-bacio | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: NOAA-EMC/NCEPLIBS-bacio | ||
path: bacio | ||
ref: v2.5.0 | ||
|
||
- name: cache-bacio | ||
id: cache-bacio | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/bacio | ||
key: bacio-Linux_options_${{ runner.os }}-v2.5.0 | ||
|
||
- 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-w3emc | ||
uses: actions/checkout@v2 | ||
with: | ||
path: w3emc | ||
|
||
- name: build-w3emc | ||
run: | | ||
cd w3emc | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_PREFIX_PATH=~/bacio ${{ matrix.options }} .. | ||
make -j2 | ||
- name: test-w3emc | ||
run: | | ||
cd w3emc/build | ||
ctest --output-on-failure --rerun-failed --verbose |
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 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 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 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 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
Oops, something went wrong.