-
Notifications
You must be signed in to change notification settings - Fork 6
188 lines (183 loc) · 7.27 KB
/
Copy pathbuild.yml
File metadata and controls
188 lines (183 loc) · 7.27 KB
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
name: build
on: push
jobs:
compile-msvc-x86-release:
name: Windows MSVC x86 Release
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --preset x86-msvc-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --build build/x86-msvc-relwithdebinfo --target tools studio tests
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x86-msvc-relwithdebinfo --output-on-failure --timeout 60
- name: CMake Install
shell: cmd
run: |
cmake --install build/x86-msvc-relwithdebinfo --prefix dist/x86-msvc-relwithdebinfo
- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x86 debug symbols
path: |
build/x86-msvc-relwithdebinfo/src/3dmovie.pdb
build/x86-msvc-relwithdebinfo/src/chomp/studio/*.i
- name: Upload Release
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x86
path: |
dist/x86-msvc-relwithdebinfo
compile-clang-x86-debug:
name: Windows Clang x86 Debug
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Visual Studio clang
# Move the separate Github Action LLVM install out of the way to prevent it from being
# detected by cmake: this causes us to fall back to the version provided by VS instead
run: |
Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore"
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --preset x86-clangcl-debug -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --build build/x86-clangcl-debug --target tests
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x86-clangcl-debug --output-on-failure --timeout 60
compile-msvc-x64-debug:
name: Windows MSVC x64 Debug
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --preset x64-msvc-debug -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --build build/x64-msvc-debug --target tests
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x64-msvc-debug --output-on-failure --timeout 60
compile-sdl-msvc-x64-debug:
name: Windows SDL MSVC x64 Debug
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --preset sdl-x64-msvc-debug -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --build build/sdl-x64-msvc-debug --target studio tests
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/sdl-x64-msvc-debug --output-on-failure --timeout 60
compile-clang-x64-release:
name: Windows Clang x64 Release
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Visual Studio clang
# Move the separate Github Action LLVM install out of the way to prevent it from being
# detected by cmake: this causes us to fall back to the version provided by VS instead
run: |
Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore"
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --preset x64-clangcl-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --build build/x64-clangcl-relwithdebinfo --target tools studio tests
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x64-clangcl-relwithdebinfo --output-on-failure --timeout 60
- name: CMake Install
shell: cmd
run: |
cmake --install build/x64-clangcl-relwithdebinfo --prefix dist/x64-clangcl-relwithdebinfo
move dist\x64-clangcl-relwithdebinfo\3dmovie.exe dist\x64-clangcl-relwithdebinfo\3dmovie-x64.exe
move build\x64-clangcl-relwithdebinfo\src\3dmovie.pdb build\x64-clangcl-relwithdebinfo\src\3dmovie-x64.pdb
- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x64 debug symbols
path: |
build/x64-clangcl-relwithdebinfo/src/3dmovie-x64.pdb
build/x64-clangcl-relwithdebinfo/src/chomp/studio/*.i
- name: Upload Release
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x64
path: |
dist/x64-clangcl-relwithdebinfo
compile-gcc-x86_64-linux-release:
name: Linux gcc x86_64 Debug
runs-on: ubuntu-latest
steps:
- name: Install Packages
run: |
sudo apt-get update &&
sudo apt-get install -y g++ cmake libsdl2-dev libsdl2-ttf-dev libgtk-3-dev zenity ninja-build
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
run: |
cmake --preset sdl-x86_64-gcc-linux-debug
- name: CMake Build
run: |
cmake --build build/sdl-x86_64-gcc-linux-debug --target tools studio tests
- name: Run tests
run: |
ctest --test-dir build/sdl-x86_64-gcc-linux-debug --output-on-failure --timeout 60
- name: CMake Install
run: |
cmake --install build/sdl-x86_64-gcc-linux-debug --prefix dist/sdl-x86_64-gcc-linux-debug
- name: Upload debug files
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Linux gcc x86_64 debug files
path: |
build/sdl-x86_64-gcc-linux-debug/src/chomp/studio/*.i
- name: Upload Debug
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Linux gcc x86_64 Debug
path: |
dist/sdl-x86_64-gcc-linux-debug