-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
2 changed files
with
100 additions
and
4 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,97 @@ | ||
name: ci | ||
|
||
# Controls when the action will run | ||
on: | ||
|
||
# Trigger the workflow on all pushes, except on tag creation | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
|
||
# Trigger the workflow on all pull requests | ||
pull_request: ~ | ||
|
||
# Allow workflow to be dispatched on demand | ||
workflow_dispatch: ~ | ||
|
||
jobs: | ||
ci: | ||
name: ci | ||
strategy: | ||
matrix: | ||
name: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
# Currently disabled because of dynamic library linking issues | ||
# - [email protected] | ||
- [email protected] | ||
include: | ||
- name: [email protected] | ||
os: ubuntu-20.04 | ||
compiler: gnu-10 | ||
compiler_cc: gcc-10 | ||
compiler_cxx: g++-10 | ||
compiler_fc: gfortran-10 | ||
- name: [email protected] | ||
os: ubuntu-20.04 | ||
compiler: clang-12 | ||
compiler_cc: clang-12 | ||
compiler_cxx: clang++-12 | ||
compiler_fc: gfortran-10 | ||
- name: [email protected] | ||
os: ubuntu-18.04 | ||
compiler: gnu-10 | ||
compiler_cc: gcc-10 | ||
compiler_cxx: g++-10 | ||
compiler_fc: gfortran-10 | ||
- name: [email protected] | ||
os: ubuntu-18.04 | ||
compiler: clang-9 | ||
compiler_cc: clang-9 | ||
compiler_cxx: clang++-9 | ||
compiler_fc: gfortran-9 | ||
# Currently disabled because of dynamic library linking issues | ||
# - name: [email protected] | ||
# os: macos-10.15 | ||
# compiler: gnu-10 | ||
# compiler_cc: gcc-10 | ||
# compiler_cxx: g++-10 | ||
# compiler_fc: gfortran-10 | ||
# Xcode compiler requires empty environment variables, so we pass null (~) here | ||
- name: [email protected] | ||
os: macos-10.15 | ||
compiler: clang-12 | ||
compiler_cc: ~ | ||
compiler_cxx: ~ | ||
compiler_fc: gfortran-10 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies | ||
shell: bash -eux {0} | ||
run: | | ||
brew install netcdf pango proj | ||
echo "PROJ_PATH=$(brew --prefix proj)" >> $GITHUB_ENV | ||
echo "NETCDF_PATH=$(brew --prefix netcdf)" >> $GITHUB_ENV | ||
- name: Build & Test | ||
id: build-test | ||
uses: ecmwf-actions/build-package@v1 | ||
with: | ||
self_coverage: true | ||
dependencies: | | ||
ecmwf/ecbuild | ||
ecmwf/eccodes | ||
dependency_branch: develop | ||
|
||
- name: Codecov Upload | ||
if: steps.build-test.outputs.coverage_file && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: ${{ steps.build-test.outputs.coverage_file }} |
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