-
Notifications
You must be signed in to change notification settings - Fork 56
274 lines (228 loc) · 7.6 KB
/
compilation.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
name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build-psp:
name: PSP Build
runs-on: ubuntu-latest
container: pspdev/pspdev:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apk add build-base git bash cmake
- name: Compile project
run: |
./build_daedalus.sh PSP
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Prepare artifacts
run: |
tar -zcvf daedalusX64-PSP.tar.gz \
DaedalusX64/Plugins \
DaedalusX64/EBOOT.PBP \
DaedalusX64/roms.ini \
DaedalusX64/readme.txt \
DaedalusX64/copying.txt \
DaedalusX64/Resources \
DaedalusX64/Languages \
DaedalusX64/ControllerConfigs \
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: DaedalusX64-PSP
path: daedalusX64-PSP.tar.gz
- name: Extract tag name
if: startsWith(github.ref, 'refs/tags/')
id: tag
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
# - name: Create pre-release
# if: github.ref == 'refs/heads/master'
# uses: softprops/action-gh-release@v1
# with:
# files: daedalusX64-PSP.tar.gz
# prerelease: true
# name: "Development build"
# tag_name: "latest"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Release
# if: startsWith(github.ref, 'refs/tags/')
# uses: softprops/action-gh-release@v1
# with:
# files: daedalusX64-PSP.tar.gz
# tag_name: ${{ steps.tag.outputs.VERSION }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# name: CI
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt install build-essential git bash cmake libpng-dev libz-dev libminizip-dev libsdl2-dev libsdl2-ttf-dev libglew-dev
- name: Compile project
run: |
./build_daedalus.sh
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Prepare artifacts
run: |
tar -zcvf daedalusX64-linux.tar.gz \
DaedalusX64/daedalus \
DaedalusX64/n64.psh \
DaedalusX64/roms.ini \
DaedalusX64/readme.txt \
DaedalusX64/copying.txt \
DaedalusX64/Resources \
DaedalusX64/Languages \
DaedalusX64/ControllerConfigs \
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: daedalusX64-linux
path: daedalusX64-linux.tar.gz
# - name: Extract tag name
# if: startsWith(github.ref, 'refs/tags/')
# id: tag
# run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
# - name: Create pre-release
# if: github.ref == 'refs/heads/master'
# uses: softprops/action-gh-release@v1
# with:
# files: daedalusX64-linux.tar.gz
# prerelease: true
# name: "Development build"
# tag_name: "latest"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Release
# if: startsWith(github.ref, 'refs/tags/')
# uses: softprops/action-gh-release@v1
# with:
# files: daedalusX64-linux.tar.gz
# tag_name: ${{ steps.tag.outputs.VERSION }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-ctr:
runs-on: ubuntu-latest
container: devkitpro/devkitarm:latest
steps:
- uses: actions/checkout@v2
# Needed to build CIA files
- name: build makerom
run: |
apt-get update && \
apt-get -y install g++ libyaml-dev libmbedtls-dev
git clone https://github.com/wally4000/Project_CTR --depth=1
cd Project_CTR/
make
cp makerom/bin/makerom /usr/local/bin
- name: Build PicaGL
run: |
git clone -b revamp https://github.com/masterfeizz/picaGL --depth=1
cd picaGL
DEVKITARM='/opt/devkitpro/devkitARM' make
DEVKITARM='/opt/devkitpro/devkitARM' make install
- name: Build imgui-picagl
run: |
git clone https://github.com/masterfeizz/imgui-picagl --depth=1
cd imgui-picagl
DEVKITARM='/opt/devkitpro/devkitARM' make
DEVKITARM='/opt/devkitpro/devkitARM' make install
- name: Compile project
run: |
./build_daedalus.sh CTR
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Prepare artifacts
run: |
tar -zcvf daedalusX64-CTR.tar.gz DaedalusX64\
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: daedalusX64-CTR
path: daedalusX64-CTR.tar.gz
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Setup Homebrew # This will install the correct homebrew for architecture selected
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install dependencies
run: |
brew install git bash cmake libpng minizip sdl2 sdl2_ttf glew
- name: Compile project
run: |
./build_daedalus.sh
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Prepare artifacts
run: |
tar -zcvf daedalusX64-macos-x86.tar.gz \
DaedalusX64/daedalus \
DaedalusX64/n64.psh \
DaedalusX64/roms.ini \
DaedalusX64/readme.txt \
DaedalusX64/copying.txt \
DaedalusX64/Resources \
DaedalusX64/Languages \
DaedalusX64/ControllerConfigs \
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: DaedalusX64-macos
path: daedalusX64-macos-x86.tar.gz
# - name: Extract tag name
# if: startsWith(github.ref, 'refs/tags/')
# id: tag
# run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
# - name: Create pre-release
# if: github.ref == 'refs/heads/master'
# uses: softprops/action-gh-release@v1
# with:
# files: daedalusX64-macos-x86.tar.gz
# prerelease: true
# name: "Development build"
# tag_name: "latest"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Release
# if: startsWith(github.ref, 'refs/tags/')
# uses: softprops/action-gh-release@v1
# with:
# files: daedalusX64-macos-x86.tar.gz
# tag_name: ${{ steps.tag.outputs.VERSION }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-windows:
runs-on: windows-latest
env:
VCPKG_DEFAULT_TRIPLET: x64-windows
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- name: Setup a new (or from cache) vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: aa628ceb5f15f0c30d4d481f14fa5b2be2b4a658
runVcpkgInstall: true
- name: Run CMake config
run: |
cmake -S . -B build "-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows"
- name: Build
run: |
cmake --build build --config Release