-
Notifications
You must be signed in to change notification settings - Fork 168
260 lines (246 loc) · 7.2 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
name: Picodrive CI
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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 -j2
build-libretro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: make
run: LDFLAGS=-Wl,--no-undefined make -j2 -f Makefile.libretro
build-gp2x:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-gp2x
permissions:
packages: read
steps:
- uses: actions/checkout@v3
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 -j2 PLATFORM_MP3=0
make -C platform/gp2x rel VER=$ver
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: GP2X
path: PicoDrive-gph_*.zip
build-pandora:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-pandora
steps:
- uses: actions/checkout@v3
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 -j2
make -C platform/pandora rel VER=$ver
mv platform/pandora/PicoDrive_*.pnd .
- name: artifacts
uses: actions/upload-artifact@v3
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@v3
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 -j2
make -C platform/psp rel VER=$ver
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: PSP
path: PicoDrive_psp_*.zip
build-dingux:
runs-on: ubuntu-latest
permissions:
packages: read
container: ghcr.io/irixxxx/toolchain-dingux
steps:
- uses: actions/checkout@v3
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 -j2
mv PicoDrive-dge.zip PicoDrive-dge-$ver.zip
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: Dingux
path: PicoDrive-dge*.zip
build-gcw0:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-opendingux
steps:
- uses: actions/checkout@v3
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 -j2
mv PicoDrive.opk PicoDrive-gcw0-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: GCW0
path: PicoDrive-gcw0*.opk
build-opendingux:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-opendingux
steps:
- uses: actions/checkout@v3
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 -j2
mv PicoDrive.opk PicoDrive-opendingux-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v3
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@v3
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 -j2
mv PicoDrive-miyoo.zip PicoDrive-miyoo-$ver.zip
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: Miyoo
path: PicoDrive-miyoo*.zip
build-retrofw:
runs-on: ubuntu-latest
container: ghcr.io/irixxxx/toolchain-retrofw
steps:
- uses: actions/checkout@v3
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 -j2
mv PicoDrive.opk PicoDrive-retrofw-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v3
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@v3
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 -j2
mv PicoDrive.opk PicoDrive-odbeta-gcw0-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v3
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@v3
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 -j2
mv PicoDrive.opk PicoDrive-odbeta-lepus-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v3
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@v3
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 -j2
mv PicoDrive.opk PicoDrive-odbeta-rg99-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: ODbeta rg99
path: PicoDrive-odbeta-*.opk