Skip to content

Commit

Permalink
Merge pull request #834 from mpsonntag/dev
Browse files Browse the repository at this point in the history
Add gh-actions build
  • Loading branch information
jgrewe committed Jul 4, 2021
2 parents c865fd0 + 4715559 commit 3e2b874
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 1 deletion.
74 changes: 74 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: build-test

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master

jobs:
build-ub1804:
name: ubuntu-18.04-build
runs-on: ubuntu-18.04
strategy:
matrix:
compiler: [gcc, clang]
steps:
- name: Install dependecies
run: |
sudo apt-get update -y &&
sudo apt-get install -yy --no-install-recommends \
bash \
cmake \
clang-7 \
curl \
doxygen \
git \
gcc-8 \
g++-8 \
libcppunit-dev \
libboost-all-dev \
libhdf5-dev \
libhdf5-serial-dev \
libyaml-cpp-dev \
libstdc++-8-dev \
lcov \
valgrind
- uses: actions/checkout@v2
- name: Build-Test
env:
CC: ${{ matrix.compiler }}
run: |
mkdir build
pushd build
cmake -DBUILD_COVERAGE=ON ..
make
make test
popd
- name: Coverage
if: endsWith(matrix.compiler, 'gcc')
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
lcov -q --capture --directory . --no-extern --output-file coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info -C $GITHUB_SHA -B ${GITHUB_REF#refs/heads/} -Z
build-macos:
name: Build on macOS
runs-on: macOS-10.14
steps:
- name: Install dependecies
run: |
brew update
brew install cmake boost cppunit hdf5 yaml-cpp
- uses: actions/checkout@v2
- name: Build-Test
run: |
mkdir build
cd build
cmake ..
make
make test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/G-Node/nix.svg?branch=master)](https://travis-ci.org/G-Node/nix)
[![gh actions tests](https://github.com/G-Node/nix/workflows/build-test/badge.svg?branch=master)](https://github.com/G-Node/nix/actions)
[![Build status](https://ci.appveyor.com/api/projects/status/1qlcasjg2fpqotig/branch/master?svg=true)](https://ci.appveyor.com/project/G-Node/nix/branch/master)
[![Coverage](https://codecov.io/gh/G-Node/nix/branch/master/graph/badge.svg)](https://codecov.io/gh/G-Node/nix)

Expand Down

0 comments on commit 3e2b874

Please sign in to comment.