forked from zillevdr/vdr-plugin-softhddevice-drm
-
Notifications
You must be signed in to change notification settings - Fork 6
142 lines (124 loc) · 3.78 KB
/
Copy pathc-cpp.yml
File metadata and controls
142 lines (124 loc) · 3.78 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Build vdr-plugin-softhddevice-drm-gles
on:
push:
branches:
- drm-atomic-gles
pull_request:
branches:
- drm-atomic-gles
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
pkg-config \
git \
catch2 \
lcov \
valgrind \
gettext \
cppcheck \
libavcodec-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libasound2-dev \
libdrm-dev \
libgbm-dev \
libgles2-mesa-dev \
libegl1-mesa-dev \
libglm-dev \
libfreetype6-dev \
libfontconfig-dev
- name: Clone VDR repository
run: git clone https://github.com/vdr-projects/vdr.git
- name: Checkout plugin repository
uses: actions/checkout@v4
with:
path: vdr/PLUGINS/src/softhddevice-drm-gles
- name: Build plugin (with OpenGL/ES support)
run: |
cd vdr
make include-dir vdr.pc
make -C PLUGINS/src/softhddevice-drm-gles INCLUDES="-isystem `pwd`/include -Werror" GLES=1
cd PLUGINS/src/softhddevice-drm-gles
if ! git diff --quiet -- po/*.po; then
echo "ERROR: The translation files need to be updated:"
git --no-pager diff -- po/*.po
exit 1
fi
continue-on-error: false
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: vdr-softhddevice-drm-gles
path: vdr/PLUGINS/src/softhddevice-drm-gles/libvdr-softhddevice-drm-gles.so
if-no-files-found: error
- name: Run cppcheck
run: |
cd vdr/PLUGINS/src/softhddevice-drm-gles
cppcheck --quiet --error-exitcode=1 .
- name: Run unit tests
run: |
cd vdr/PLUGINS/src/softhddevice-drm-gles/tests
make test
continue-on-error: false
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: vdr/PLUGINS/src/softhddevice-drm-gles/tests/test-results.xml
check_name: Unit Test Results
- name: Generate coverage report
run: |
cd vdr/PLUGINS/src/softhddevice-drm-gles/tests
make coverage-html
- name: Upload coverage HTML report
uses: actions/upload-artifact@v4
with:
name: coverage-html-report
path: vdr/PLUGINS/src/softhddevice-drm-gles/tests/coverage-html/
build-without-gles:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get update
sudo apt-get install -y \
build-essential \
pkg-config \
git \
gettext \
libavcodec-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libasound2-dev \
libdrm-dev \
libgbm-dev \
libglm-dev \
libfreetype6-dev \
libfontconfig-dev
- name: Clone VDR repository
run: git clone https://github.com/vdr-projects/vdr.git
- name: Checkout plugin repository
uses: actions/checkout@v4
with:
path: vdr/PLUGINS/src/softhddevice-drm-gles
- name: Build plugin (without OpenGL/ES support)
run: |
cd vdr
make include-dir vdr.pc
make -C PLUGINS/src/softhddevice-drm-gles INCLUDES="-isystem `pwd`/include -Werror" GLES=0
continue-on-error: false
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: vdr-softhddevice-drm-no-gles
path: vdr/PLUGINS/src/softhddevice-drm-gles/libvdr-softhddevice-drm-gles.so
if-no-files-found: error