-
-
Notifications
You must be signed in to change notification settings - Fork 33
44 lines (37 loc) · 1.18 KB
/
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
name: Coverage
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/latest-ubuntu-toolchain
- name: Install Dependencies
run: |
sudo gem install coveralls-lcov
sudo apt-get install -yqq python3 python3-pip lcov build-essential gcovr
sudo pip3 install --upgrade wheel setuptools
sudo pip3 install git+https://github.com/rpgillespie6/fastcov.git
- name: Build
run: |
QT_ENV_SCRIPT=$(find /opt -name 'qt*-env.sh')
set +e
source $QT_ENV_SCRIPT
set -e
cmake -B build -S ${GITHUB_WORKSPACE} \
-DCMAKE_BUILD_TYPE=Debug \
-DOSSIA_TESTING=1 \
-DOSSIA_COVERAGE=1 \
-DPORTAUDIO_ONLY_DYNAMIC=1 \
-DOSSIA_PD=0 \
-DOSSIA_QT=1 \
-DOSSIA_C=1
cmake --build build -- -j2
cmake --build build --target ossia_coverage || true
rm -rf **/*.o
find . -name '*.info'
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ github.workspace }}/build/coverage.info