forked from notaz/picodrive
-
Notifications
You must be signed in to change notification settings - Fork 64
304 lines (288 loc) · 8.82 KB
/
ci.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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
name: Picodrive CI
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y libsdl1.2-dev libasound2-dev libpng-dev libz-dev
- name: configure
run: DUMP_CONFIG_LOG=1 ./configure
- name: make
run: make -j$(getconf _NPROCESSORS_ONLN)
build-libretro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: make
run: LDFLAGS=-Wl,--no-undefined make -j$(getconf _NPROCESSORS_ONLN) -f Makefile.libretro
build-win32:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-win32
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=win32
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive.zip PicoDrive-win32-$ver.zip
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: Win32
path: PicoDrive-win32*.zip
build-gp2x:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-gp2x
permissions:
packages: read
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=gph
make -j$(getconf _NPROCESSORS_ONLN) PLATFORM_MP3=0
make -C platform/gp2x rel VER=$ver
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: GP2X
path: PicoDrive-gph_*.zip
build-pandora:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-pandora
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=pandora
make -j$(getconf _NPROCESSORS_ONLN)
make -C platform/pandora rel VER=$ver
mv platform/pandora/PicoDrive_*.pnd .
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: Pandora
path: PicoDrive_*.pnd
build-psp:
runs-on: ubuntu-latest
container: pspdev/pspdev
steps:
- name: build environment
run: |
apk add git gcc g++ zip
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
export CROSS_COMPILE=psp-
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=psp
make -j$(getconf _NPROCESSORS_ONLN)
make -C platform/psp rel VER=$ver
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: PSP
path: PicoDrive_psp_*.zip
build-ps2:
runs-on: ubuntu-latest
container: ps2dev/ps2dev
steps:
- name: build environment
run: |
apk add build-base cmake git zip make
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
export CROSS_COMPILE=mips64r5900el-ps2-elf-
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=ps2
make -j$(getconf _NPROCESSORS_ONLN)
make -C platform/ps2 rel VER=$ver
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: PS2
path: PicoDrive_ps2_*.zip
build-dingux:
runs-on: ubuntu-latest
permissions:
packages: read
container: ghcr.io/irixxxx/toolchain-dingux
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=dingux
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive-dge.zip PicoDrive-dge-$ver.zip
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: Dingux
path: PicoDrive-dge*.zip
build-gcw0:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-opendingux
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=opendingux-gcw0
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive.opk PicoDrive-gcw0-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: GCW0
path: PicoDrive-gcw0*.opk
build-opendingux:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-opendingux
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=opendingux
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive.opk PicoDrive-opendingux-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: Opendingux
path: PicoDrive-opendingux*.opk
build-miyoo:
runs-on: ubuntu-latest
permissions:
packages: read
container: ghcr.io/irixxxx/toolchain-miyoo
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=miyoo
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive-miyoo.ipk PicoDrive-miyoo-$ver.ipk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: Miyoo
path: PicoDrive-miyoo*.ipk
build-retrofw:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-retrofw
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=retrofw
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive.opk PicoDrive-retrofw-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: RetroFW
path: PicoDrive-retrofw*.opk
build-odbeta-gcw0:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-odbeta-gcw0
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=odbeta
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive.opk PicoDrive-odbeta-gcw0-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: ODbeta gcw0
path: PicoDrive-odbeta-*.opk
build-odbeta-lepus:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-odbeta-lepus
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=odbeta
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive.opk PicoDrive-odbeta-lepus-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: ODbeta lepus
path: PicoDrive-odbeta-*.opk
build-odbeta-rg99:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-odbeta-rs90
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=odbeta
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive.opk PicoDrive-odbeta-rg99-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: ODbeta rg99
path: PicoDrive-odbeta-*.opk