-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1006 Bytes
/
build.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
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install lcov
run: sudo apt-get install lcov
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Install nasm
run: sudo apt install nasm
- name: create build dir
run: mkdir build
- name: cmake
working-directory: build
run: cmake .. -DCMAKE_BUILD_TYPE=Debug
- name: make
working-directory: build
run: make
- name: test
working-directory: build
run: make test ARGS="-V"
- name: coverage
working-directory: build
run: make coverage
- name: prepare coverage
working-directory: build
run: cat coverage/*.info >> coverage/lcov.info
- name: Upload code coverage report to coveralls
uses: coverallsapp/github-action@3b7078ee895f74fc267b7b267c88211df59fa816 # v2.2.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: build/coverage/lcov.info