-
Notifications
You must be signed in to change notification settings - Fork 36
51 lines (43 loc) · 1.96 KB
/
test_coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build, test and code coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
#runs-on: ubuntu-18.04 # bionic
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Instal system dependencies using apt
- name: Install system dependencies and prerequisites
run: |
pip install --user cpp-coveralls codecov
sudo apt-get update
sudo apt-get install -y --no-install-recommends lcov bzip2 wget cmake make g++ xsdcxx libxerces-c-dev
sudo apt-get install -y --no-install-recommends libboost-system-dev libboost-filesystem-dev libboost-timer-dev libboost-thread-dev libboost-program-options-dev
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt install intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mkl-devel intel-oneapi-tbb-devel
# Build and test using shell script
- name: Build and test
run: |
chmod +x ./resources/make_dynadjust_gcc.sh
./resources/make_dynadjust_gcc.sh --no-install --auto --no-clone --test
# Submit to coveralls
- name: Submit coverage to Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./dynadjust/build_gcc/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}