-
Notifications
You must be signed in to change notification settings - Fork 28
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 #10 from rem1776/actionTest
Basic github action for CI
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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,24 @@ | ||
# Github actions CI file | ||
# Ryan Mulhall 2020 | ||
# Configures with and without mpi and runs make check | ||
name: build_FRE-NCtools | ||
|
||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
with_mpi: ['--with-mpi', ''] | ||
env: | ||
MPI: ${{ matrix.with_mpi }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup | ||
run: sudo apt-get install -y libnetcdf-dev libnetcdff-dev netcdf-bin libopenmpi-dev openmpi-bin | ||
- name: Build | ||
run: | | ||
autoreconf -i configure.ac | ||
./configure $MPI | ||
make -j check LOG_DRIVER_FLAGS=--comments |