-
Notifications
You must be signed in to change notification settings - Fork 2
26 lines (26 loc) · 978 Bytes
/
c-cpp.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
name: Build Test Coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
DISPLAY: :0
steps:
- uses: actions/[email protected]
- name: make test
run: |
sudo apt-get update
sudo apt-get install xvfb libcunit1 libcunit1-dev libcunit1-doc
sudo apt-get install libsdl2-dev libportmidi-dev libswscale-dev libsdl2-mixer-2.0-0 libsdl2-mixer-dev
sudo apt-get install libavformat-dev libavcodec-dev libjpeg-dev libtiff5-dev libx11-6
sudo apt-get install libx11-dev xfonts-base xfonts-100dpi xfonts-75dpi
sudo apt-get install libsmpeg-dev xfonts-cyrillic
CFLAGS="-coverage -O0 -Wall -fprofile-arcs -ftest-coverage" xvfb-run --auto-servernum make test
gcov src/cpu.c
gcov src/screen.c
gcov src/keyboard.c
gcov src/memory.c
- name: Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}