-
Notifications
You must be signed in to change notification settings - Fork 1
266 lines (253 loc) · 9.54 KB
/
make.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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
name: Build and Run Tests
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
jobs:
# Build documentation and checking proper style
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Installing apt packages
run: sudo apt install clang-format doxygen graphviz
- name: Checking proper code styling
run: |
git submodule init extern/jaffarCommon
git submodule update extern/jaffarCommon
cp extern/jaffarCommon/.clang-format .
extern/jaffarCommon/.build-tools/check-style.sh check source
extern/jaffarCommon/.build-tools/check-style.sh check games
extern/jaffarCommon/.build-tools/check-style.sh check emulators
# Build and run tests (QuickerNES) + Coverage Tests
build-QuickerNES:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerNES
run: |
git submodule init extern/quickerNES
git submodule update --recursive extern/quickerNES
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja gcovr
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -Db_coverage=true -DuseNCurses=false -Demulators=QuickerNES
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
- name: Running coverage analysis
run: ninja coverage-xml -C build
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: SergioMartin86/jaffarPlus
fail_ci_if_error: true
files: build/meson-logs/coverage.xml
- uses: actions/upload-artifact@v4
if: always()
with:
name: meson-logs
path: build/meson-logs/
# Build and run tests (QuickerNESArkanoid)
build-QuickerNESArkanoid:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerNES
run: |
git submodule init extern/quickerNES
git submodule update --recursive extern/quickerNES
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja gcovr
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -Db_coverage=true -DuseNCurses=false -Demulators=QuickerNESArkanoid
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
# Build and run tests (QuickerSDLPoP)
build-QuickerSDLPoP:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerSDLPoP
run: |
git submodule init extern/quickerSDLPoP
git submodule update --recursive extern/quickerSDLPoP
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=QuickerSDLPoP
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
# Build and run tests (QuickerSnes9x)
build-QuickerSnes9x:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerSnes9x
run: |
git submodule init extern/quickerSnes9x
git submodule update --recursive extern/quickerSnes9x
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=QuickerSnes9x
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
# Build and run tests (QuickerGPGX)
build-QuickerGPGX:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerGPGX
run: |
git submodule init extern/quickerGPGX
git submodule update --recursive extern/quickerGPGX
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=QuickerGPGX
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
# Build and run tests (QuickerStella)
build-QuickerStella:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerStella
run: |
git submodule init extern/quickerStella
git submodule update --recursive extern/quickerStella
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=QuickerStella
- name: Building project
run: ninja -C build
# Disabling tests for stella because it does not run correctly in the CI
#- name: Running tests
# run: ninja test -C build
# Build and run tests (Atari2600Hawk)
build-Atari2600Hawk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout Atari2600Hawk
run: |
git submodule init extern/atari2600Hawk
git submodule update --recursive extern/atari2600Hawk
- name: Checkout Atari2600Hawk
working-directory: extern/atari2600Hawk
run: |
git submodule init source/base/core
git submodule update --recursive source/base/core
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=Atari2600Hawk
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
# Build and run tests (QuickerSMBC)
build-QuickerSMBC:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerSMBC
run: |
git submodule init extern/quickerSMBC
git submodule update --recursive extern/quickerSMBC
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=QuickerSMBC
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
# Build and run tests (QuickerRAW)
build-QuickerRAW:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerRAW
run: |
git submodule init extern/quickerRAW
git submodule update --recursive extern/quickerRAW
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=QuickerRAW
- name: Building project
run: ninja -C build
# Disabling tests for RAW because I cannot upload the game data files
#- name: Running tests
# run: ninja test -C build
# Build and run tests (QuickerArkBot)
build-QuickerArkBot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout QuickerArkBot
run: |
git submodule init extern/quickerArkBot
git submodule update --recursive extern/quickerArkBot
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev libnuma-dev libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -Dbuildtype=release -DuseNCurses=false -Demulators=QuickerArkBot
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build