|
27 | 27 | - name: Install Dependencies |
28 | 28 | shell: powershell |
29 | 29 | run: | |
30 | | - Invoke-WebRequest -Uri "https://www.libsdl.org/release/SDL2-devel-2.26.3-VC.zip" -OutFile "SDL2-devel-2.26.3-VC.zip" |
31 | | - Expand-Archive -Path SDL2-devel-2.26.3-VC.zip |
32 | | - echo "SDL2_DIR=$(pwd)\SDL2-devel-2.26.3-VC\SDL2-2.26.3\" >>${env:GITHUB_ENV} |
| 30 | + Invoke-WebRequest -Uri "https://www.libsdl.org/release/SDL2-devel-2.32.8-VC.zip" -OutFile "SDL2-devel-2.32.8-VC.zip" |
| 31 | + Expand-Archive -Path SDL2-devel-2.32.8-VC.zip |
| 32 | + echo "SDL2_DIR=$(pwd)\SDL2-devel-2.32.8-VC\SDL2-2.32.8\" >>${env:GITHUB_ENV} |
| 33 | + |
| 34 | + Invoke-WebRequest -Uri "https://www.libsdl.org/release/SDL3-devel-3.2.18-VC.zip" -OutFile "SDL3-devel-3.2.18-VC.zip" |
| 35 | + Expand-Archive -Path SDL3-devel-3.2.18-VC.zip |
| 36 | + echo "SDL3_DIR=$(pwd)\SDL3-devel-3.2.18-VC\SDL3-3.2.18\" >>${env:GITHUB_ENV} |
33 | 37 |
|
34 | 38 | Invoke-WebRequest -Uri "https://github.com/ocornut/imgui/files/3789205/vulkan-sdk-1.1.121.2.zip" -OutFile vulkan-sdk-1.1.121.2.zip |
35 | 39 | Expand-Archive -Path vulkan-sdk-1.1.121.2.zip |
@@ -102,9 +106,12 @@ jobs: |
102 | 106 | cl.exe /D_USRDLL /D_WINDLL /I. example_single_file.cpp /LD /FeImGui.dll /link |
103 | 107 | cl.exe /DIMGUI_API=__declspec(dllimport) /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp |
104 | 108 |
|
| 109 | + # Win64 examples are more frequently compilted than the Win32 examples. |
| 110 | + # More of the Win32 examples requires 'workflow_run' to reduce waste. |
105 | 111 | - name: Build Win32 example_glfw_opengl2 |
106 | 112 | shell: cmd |
107 | 113 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
| 114 | + if: github.event_name == 'workflow_run' |
108 | 115 |
|
109 | 116 | - name: Build Win32 example_glfw_opengl3 |
110 | 117 | shell: cmd |
@@ -140,72 +147,111 @@ jobs: |
140 | 147 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
141 | 148 | if: github.event_name == 'workflow_run' |
142 | 149 |
|
| 150 | + - name: Build Win32 example_sdl3_opengl3 |
| 151 | + shell: cmd |
| 152 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
| 153 | + |
| 154 | + - name: Build Win32 example_sdl3_sdlgpu3 |
| 155 | + shell: cmd |
| 156 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_sdlgpu3/example_sdl3_sdlgpu3.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
| 157 | + if: github.event_name == 'workflow_run' |
| 158 | + |
| 159 | + - name: Build Win32 example_sdl3_sdlrenderer3 |
| 160 | + shell: cmd |
| 161 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
| 162 | + if: github.event_name == 'workflow_run' |
| 163 | + |
| 164 | + - name: Build Win32 example_sdl3_vulkan |
| 165 | + shell: cmd |
| 166 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_vulkan/example_sdl3_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
| 167 | + if: github.event_name == 'workflow_run' |
| 168 | + |
143 | 169 | - name: Build Win32 example_win32_directx9 |
144 | 170 | shell: cmd |
145 | 171 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
| 172 | + if: github.event_name == 'workflow_run' |
146 | 173 |
|
147 | 174 | - name: Build Win32 example_win32_directx10 |
148 | 175 | shell: cmd |
149 | 176 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
| 177 | + if: github.event_name == 'workflow_run' |
150 | 178 |
|
151 | 179 | - name: Build Win32 example_win32_directx11 |
152 | 180 | shell: cmd |
153 | 181 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release' |
154 | 182 | if: github.event_name == 'workflow_run' |
155 | 183 |
|
156 | | - - name: Build x64 example_glfw_opengl2 |
| 184 | + # Windows 64-bits |
| 185 | + - name: Build Win64 example_glfw_opengl2 |
157 | 186 | shell: cmd |
158 | 187 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release' |
159 | 188 | if: github.event_name == 'workflow_run' |
160 | 189 |
|
161 | | - - name: Build x64 example_glfw_opengl3 |
| 190 | + - name: Build Win64 example_glfw_opengl3 |
162 | 191 | shell: cmd |
163 | 192 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release' |
164 | 193 |
|
165 | | - - name: Build x64 example_glfw_vulkan |
| 194 | + - name: Build Win64 example_glfw_vulkan |
166 | 195 | shell: cmd |
167 | 196 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release' |
168 | 197 |
|
169 | | - - name: Build x64 example_sdl2_sdlrenderer2 |
| 198 | + - name: Build Win64 example_sdl2_sdlrenderer2 |
170 | 199 | shell: cmd |
171 | 200 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_sdlrenderer2/example_sdl2_sdlrenderer2.vcxproj /p:Platform=x64 /p:Configuration=Release' |
172 | 201 | if: github.event_name == 'workflow_run' |
173 | 202 |
|
174 | | - - name: Build x64 example_sdl2_vulkan |
| 203 | + - name: Build Win64 example_sdl2_vulkan |
175 | 204 | shell: cmd |
176 | 205 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release' |
177 | 206 | if: github.event_name == 'workflow_run' |
178 | 207 |
|
179 | | - - name: Build x64 example_sdl2_opengl2 |
| 208 | + - name: Build Win64 example_sdl2_opengl2 |
180 | 209 | shell: cmd |
181 | 210 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release' |
182 | 211 | if: github.event_name == 'workflow_run' |
183 | 212 |
|
184 | | - - name: Build x64 example_sdl2_opengl3 |
| 213 | + - name: Build Win64 example_sdl2_opengl3 |
185 | 214 | shell: cmd |
186 | 215 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release' |
187 | 216 | if: github.event_name == 'workflow_run' |
188 | 217 |
|
189 | | - - name: Build x64 example_sdl2_directx11 |
| 218 | + - name: Build Win64 example_sdl2_directx11 |
190 | 219 | shell: cmd |
191 | 220 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release' |
192 | 221 |
|
193 | | - - name: Build x64 example_win32_directx9 |
| 222 | + - name: Build Win64 example_sdl3_opengl3 |
| 223 | + shell: cmd |
| 224 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release' |
| 225 | + if: github.event_name == 'workflow_run' |
| 226 | + |
| 227 | + - name: Build Win64 example_sdl3_sdlgpu3 |
| 228 | + shell: cmd |
| 229 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_sdlgpu3/example_sdl3_sdlgpu3.vcxproj /p:Platform=x64 /p:Configuration=Release' |
| 230 | + |
| 231 | + - name: Build Win64 example_sdl3_sdlrenderer3 |
| 232 | + shell: cmd |
| 233 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj /p:Platform=x64 /p:Configuration=Release' |
| 234 | + |
| 235 | + - name: Build Win64 example_sdl3_vulkan |
| 236 | + shell: cmd |
| 237 | + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl3_vulkan/example_sdl3_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release' |
| 238 | + if: github.event_name == 'workflow_run' |
| 239 | + |
| 240 | + - name: Build Win64 example_win32_directx9 |
194 | 241 | shell: cmd |
195 | 242 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=x64 /p:Configuration=Release' |
196 | 243 | if: github.event_name == 'workflow_run' |
197 | 244 |
|
198 | | - - name: Build x64 example_win32_directx10 |
| 245 | + - name: Build Win64 example_win32_directx10 |
199 | 246 | shell: cmd |
200 | 247 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=x64 /p:Configuration=Release' |
201 | 248 | if: github.event_name == 'workflow_run' |
202 | 249 |
|
203 | | - - name: Build x64 example_win32_directx11 |
| 250 | + - name: Build Win64 example_win32_directx11 |
204 | 251 | shell: cmd |
205 | 252 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release' |
206 | | - if: github.event_name == 'workflow_run' |
207 | 253 |
|
208 | | - - name: Build x64 example_win32_directx12 |
| 254 | + - name: Build Win64 example_win32_directx12 |
209 | 255 | shell: cmd |
210 | 256 | run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx12/example_win32_directx12.vcxproj /p:Platform=x64 /p:Configuration=Release' |
211 | 257 |
|
@@ -433,7 +479,7 @@ jobs: |
433 | 479 |
|
434 | 480 | - name: Install Dependencies |
435 | 481 | run: | |
436 | | - brew install glfw3 sdl2 |
| 482 | + brew install glfw3 sdl2 sdl3 |
437 | 483 |
|
438 | 484 | - name: Build example_null (extra warnings, clang 64-bit) |
439 | 485 | run: make -C examples/example_null WITH_EXTRA_WARNINGS=1 |
@@ -491,6 +537,9 @@ jobs: |
491 | 537 | - name: Build example_sdl2_opengl3 |
492 | 538 | run: make -C examples/example_sdl2_opengl3 |
493 | 539 |
|
| 540 | + - name: Build example_sdl3_opengl3 |
| 541 | + run: make -C examples/example_sdl3_opengl3 |
| 542 | + |
494 | 543 | - name: Build example_apple_metal |
495 | 544 | run: xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos |
496 | 545 |
|
|
0 commit comments