-
Notifications
You must be signed in to change notification settings - Fork 193
60 lines (56 loc) · 1.44 KB
/
codecov-report.yaml
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
name: Code Coverage
on:
push:
pull_request:
branches: [ master ]
env:
MAKEFLAGS: -j8
jobs:
coverage:
if: github.repository_owner == 'arkq'
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: >
check
lcov
libasound2-dev
libbluetooth-dev
libdbus-1-dev
libfdk-aac-dev
libglib2.0-dev
libmp3lame-dev
libmpg123-dev
libsbc-dev
libspandsp-dev
- uses: actions/checkout@v4
- name: Create Build Environment
run: |
mkdir -p ${{ github.workspace }}/{build,m4}
autoreconf --install
- name: Configure GNU Automake
working-directory: ${{ github.workspace }}/build
run: |
${{ github.workspace }}/configure \
--enable-aac \
--enable-faststream \
--enable-midi \
--enable-mp3lame \
--enable-mpg123 \
--enable-msbc \
--enable-ofono \
--enable-upower \
--enable-aplay \
--enable-cli \
--enable-test \
--with-coverage
- name: Generate Coverage Report
working-directory: ${{ github.workspace }}/build
run: make cov
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: build/lcov.info