-
Notifications
You must be signed in to change notification settings - Fork 17
172 lines (170 loc) · 6.59 KB
/
build.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
name: Box16 Build CI
on: [push, pull_request]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install -y make build-essential libgtk-3-dev libsdl2-dev
- name: Build Box16 (Ubuntu)
run: |
cd build
make
- name: Archive Ubuntu build
uses: actions/upload-artifact@v3
with:
name: box16-nr42.xx-linux
path: build/box16/
build-ubuntu-trace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install -y make build-essential libgtk-3-dev libsdl2-dev
- name: Build Box16 (Ubuntu w/ Tracing)
run: |
cd build
make trace
- name: Archive Ubuntu build
uses: actions/upload-artifact@v3
with:
name: box16-nr42.xx-linux-trace
path: build/box16/
build-ubuntu-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install -y make build-essential libgtk-3-dev libsdl2-dev
- name: Build Box16 (Ubuntu)
run: |
cd build
make debug
build-win32-debug:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x86
- name: Build Box16 (Win32 Debug)
run: |
cd build\vs2022
msbuild box16.vcxproj -t:rebuild -verbosity:diag -property:Configuration=Debug -property:Platform=x86
build-win32-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x86
- name: Build Box16 (Win32 Release)
run: |
cd build\vs2022
msbuild box16.vcxproj -t:rebuild -verbosity:diag -property:Configuration=Release -property:Platform=x86
cd ..
mkdir -p box16-Win32-Release
cp vs2022/out/Win32/Release/Box16.exe box16-Win32-Release/
cp vs2022/out/Win32/Release/box16-icon56-24.png box16-Win32-Release/
cp vs2022/out/Win32/Release/icons.png box16-Win32-Release/
cp vs2022/out/Win32/Release/README.box16 box16-Win32-Release/
cp vs2022/out/Win32/Release/SDL2.dll box16-Win32-Release/
cp vs2022/out/Win32/Release/zlibwapi.dll box16-Win32-Release/
- name: Archive Win32-Release build
uses: actions/upload-artifact@v3
with:
name: box16-nr42.xx-Win32
path: build/box16-Win32-Release/
build-win32-release-trace:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x86
- name: Build Box16 (Win32 Release w/ Tracing)
run: |
cd build\vs2022
msbuild box16.vcxproj -t:rebuild -verbosity:diag -property:Configuration="Release (Trace)" -property:Platform=x86
cd ..
mkdir -p box16-Win32-Release-Trace
cp "vs2022/out/Win32/Release (TRACE)/Box16.exe" box16-Win32-Release-Trace/
cp "vs2022/out/Win32/Release (TRACE)/box16-icon56-24.png" box16-Win32-Release-Trace/
cp "vs2022/out/Win32/Release (TRACE)/icons.png" box16-Win32-Release-Trace/
cp "vs2022/out/Win32/Release (TRACE)/README.box16" box16-Win32-Release-Trace/
cp "vs2022/out/Win32/Release (TRACE)/SDL2.dll" box16-Win32-Release-Trace/
cp "vs2022/out/Win32/Release (TRACE)/zlibwapi.dll" box16-Win32-Release-Trace/
- name: Archive Win32-Release-Trace build
uses: actions/upload-artifact@v3
with:
name: box16-nr42.xx-Win32-trace
path: build/box16-Win32-Release-Trace/
build-x64-debug:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Build Box16 (x64 Debug)
run: |
cd build\vs2022
msbuild box16.vcxproj -t:rebuild -verbosity:diag -property:Configuration=Debug -property:Platform=x64
build-x64-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Build Box16 (x64 Release)
run: |
cd build\vs2022
msbuild box16.vcxproj -t:rebuild -verbosity:diag -property:Configuration=Release -property:Platform=x64
cd ..
mkdir -p box16-x64-Release
cp vs2022/out/x64/Release/Box16.exe box16-x64-Release/
cp vs2022/out/x64/Release/box16-icon56-24.png box16-x64-Release/
cp vs2022/out/x64/Release/icons.png box16-x64-Release/
cp vs2022/out/x64/Release/README.box16 box16-x64-Release/
cp vs2022/out/x64/Release/SDL2.dll box16-x64-Release/
cp vs2022/out/x64/Release/zlibwapi.dll box16-x64-Release/
- name: Archive x64-Release build
uses: actions/upload-artifact@v3
with:
name: box16-nr42.xx-x64
path: build/box16-x64-Release/
build-x64-release-trace:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Build Box16 (x64 Release w/ Tracing)
run: |
cd build\vs2022
msbuild box16.vcxproj -t:rebuild -verbosity:diag -property:Configuration="Release (Trace)" -property:Platform=x64
cd ..
mkdir -p box16-x64-Release-Trace
cp "vs2022/out/x64/Release (TRACE)/Box16.exe" box16-x64-Release-Trace/
cp "vs2022/out/x64/Release (TRACE)/box16-icon56-24.png" box16-x64-Release-Trace/
cp "vs2022/out/x64/Release (TRACE)/icons.png" box16-x64-Release-Trace/
cp "vs2022/out/x64/Release (TRACE)/README.box16" box16-x64-Release-Trace/
cp "vs2022/out/x64/Release (TRACE)/SDL2.dll" box16-x64-Release-Trace/
cp "vs2022/out/x64/Release (TRACE)/zlibwapi.dll" box16-x64-Release-Trace/
- name: Archive x64-Release-Trace build
uses: actions/upload-artifact@v3
with:
name: box16-nr42.xx-x64-trace
path: build/box16-x64-Release-Trace/