-
-
Notifications
You must be signed in to change notification settings - Fork 17
61 lines (49 loc) · 1.25 KB
/
coverage.yml
File metadata and controls
61 lines (49 loc) · 1.25 KB
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
51
52
53
54
55
56
57
58
59
60
61
name: Coverage CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
env:
CC: gcc-10
CXX: g++-10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: BSFishy/pip-action@v1
with:
packages: conan
- name: Cache Conan
uses: actions/cache@v2
with:
path: ~/.conan
key: conan-cache-${{ hashFiles('**/conanfile.txt') }}-g++-10
- name: Install Conan Dependencies
run: |
for dir in . test; do
conan install $dir -if deps \
-s compiler.libcxx=libstdc++11 \
--build missing
done
- name: Configure Hsm
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Release
-D HSM_GCC_COVERAGE=ON
-D "CMAKE_PREFIX_PATH=${PWD}/deps"
- name: Build Hsm
run: cmake --build build -j 2
- name: Install Hsm
run: cmake --install build --prefix install
- name: Run Hsm Tests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cd build
ctest --output-on-failure
bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'