build.yml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. name: build
  2. on:
  3. push:
  4. pull_request:
  5. workflow_run:
  6. # Use a workflow as a trigger of scheduled builds. Forked repositories can disable scheduled builds by disabling
  7. # "scheduled" workflow, while maintaining ability to perform local CI builds.
  8. workflows:
  9. - scheduled
  10. branches:
  11. - master
  12. - docking
  13. types:
  14. - requested
  15. jobs:
  16. Windows:
  17. runs-on: windows-2019
  18. env:
  19. VS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\
  20. MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\
  21. steps:
  22. - uses: actions/checkout@v4
  23. - name: Install Dependencies
  24. shell: powershell
  25. run: |
  26. Invoke-WebRequest -Uri "https://www.libsdl.org/release/SDL2-devel-2.26.3-VC.zip" -OutFile "SDL2-devel-2.26.3-VC.zip"
  27. Expand-Archive -Path SDL2-devel-2.26.3-VC.zip
  28. echo "SDL2_DIR=$(pwd)\SDL2-devel-2.26.3-VC\SDL2-2.26.3\" >>${env:GITHUB_ENV}
  29. 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
  30. Expand-Archive -Path vulkan-sdk-1.1.121.2.zip
  31. echo "VULKAN_SDK=$(pwd)\vulkan-sdk-1.1.121.2\" >>${env:GITHUB_ENV}
  32. - name: Fix Projects
  33. shell: powershell
  34. run: |
  35. # CI workers do not supporter older Visual Studio versions. Fix projects to target newer available version.
  36. gci -recurse -filter "*.vcxproj" | ForEach-Object {
  37. (Get-Content $_.FullName) -Replace "<PlatformToolset>v\d{3}</PlatformToolset>","<PlatformToolset>v142</PlatformToolset>" | Set-Content -Path $_.FullName
  38. (Get-Content $_.FullName) -Replace "<WindowsTargetPlatformVersion>[\d\.]+</WindowsTargetPlatformVersion>","<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>" | Set-Content -Path $_.FullName
  39. }
  40. # Not using matrix here because it would inflate job count too much. Check out and setup is done for every job and that makes build times way too long.
  41. - name: Build example_null (extra warnings, mingw 64-bit)
  42. run: mingw32-make -C examples/example_null WITH_EXTRA_WARNINGS=1
  43. - name: Build example_null (mingw 64-bit, as DLL)
  44. shell: bash
  45. run: |
  46. echo '#ifdef _EXPORT' > example_single_file.cpp
  47. echo '# define IMGUI_API __declspec(dllexport)' >> example_single_file.cpp
  48. echo '#else' >> example_single_file.cpp
  49. echo '# define IMGUI_API __declspec(dllimport)' >> example_single_file.cpp
  50. echo '#endif' >> example_single_file.cpp
  51. echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
  52. echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
  53. g++ -I. -Wall -Wformat -D_EXPORT -shared -o libimgui.dll -Wl,--out-implib,libimgui.a example_single_file.cpp -limm32
  54. g++ -I. -Wall -Wformat -o example_null.exe examples/example_null/main.cpp -L. -limgui
  55. rm -f example_null.exe libimgui.* example_single_file.*
  56. - name: Build example_null (extra warnings, msvc 64-bit)
  57. shell: cmd
  58. run: |
  59. cd examples\example_null
  60. call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat"
  61. .\build_win32.bat /W4
  62. - name: Build example_null (single file build)
  63. shell: bash
  64. run: |
  65. cat > example_single_file.cpp <<'EOF'
  66. #define IMGUI_IMPLEMENTATION
  67. #include "misc/single_file/imgui_single_file.h"
  68. #include "examples/example_null/main.cpp"
  69. EOF
  70. g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp -limm32
  71. - name: Build example_null (with IMGUI_DISABLE_WIN32_FUNCTIONS)
  72. shell: bash
  73. run: |
  74. cat > example_single_file.cpp <<'EOF'
  75. #define IMGUI_DISABLE_WIN32_FUNCTIONS
  76. #define IMGUI_IMPLEMENTATION
  77. #include "misc/single_file/imgui_single_file.h"
  78. #include "examples/example_null/main.cpp"
  79. EOF
  80. g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp -limm32
  81. - name: Build example_null (as DLL)
  82. shell: cmd
  83. run: |
  84. call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat"
  85. echo #ifdef _EXPORT > example_single_file.cpp
  86. echo # define IMGUI_API __declspec(dllexport) >> example_single_file.cpp
  87. echo #else >> example_single_file.cpp
  88. echo # define IMGUI_API __declspec(dllimport) >> example_single_file.cpp
  89. echo #endif >> example_single_file.cpp
  90. echo #define IMGUI_IMPLEMENTATION >> example_single_file.cpp
  91. echo #include "misc/single_file/imgui_single_file.h" >> example_single_file.cpp
  92. cl.exe /D_USRDLL /D_WINDLL /D_EXPORT /I. example_single_file.cpp /LD /FeImGui.dll /link
  93. cl.exe /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp
  94. - name: Build Win32 example_glfw_opengl2
  95. shell: cmd
  96. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  97. - name: Build Win32 example_glfw_opengl3
  98. shell: cmd
  99. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  100. if: github.event_name == 'workflow_run'
  101. - name: Build Win32 example_glfw_vulkan
  102. shell: cmd
  103. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  104. if: github.event_name == 'workflow_run'
  105. - name: Build Win32 example_sdl2_vulkan
  106. shell: cmd
  107. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  108. if: github.event_name == 'workflow_run'
  109. - name: Build Win32 example_sdl2_opengl2
  110. shell: cmd
  111. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  112. if: github.event_name == 'workflow_run'
  113. - name: Build Win32 example_sdl2_opengl3
  114. shell: cmd
  115. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  116. - name: Build Win32 example_sdl2_directx11
  117. shell: cmd
  118. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  119. if: github.event_name == 'workflow_run'
  120. - name: Build Win32 example_win32_directx9
  121. shell: cmd
  122. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  123. - name: Build Win32 example_win32_directx10
  124. shell: cmd
  125. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  126. - name: Build Win32 example_win32_directx11
  127. shell: cmd
  128. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release'
  129. if: github.event_name == 'workflow_run'
  130. - name: Build x64 example_glfw_opengl2
  131. shell: cmd
  132. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release'
  133. if: github.event_name == 'workflow_run'
  134. - name: Build x64 example_glfw_opengl3
  135. shell: cmd
  136. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release'
  137. - name: Build x64 example_glfw_vulkan
  138. shell: cmd
  139. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release'
  140. - name: Build x64 example_sdl2_vulkan
  141. shell: cmd
  142. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release'
  143. if: github.event_name == 'workflow_run'
  144. - name: Build x64 example_sdl2_opengl2
  145. shell: cmd
  146. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release'
  147. if: github.event_name == 'workflow_run'
  148. - name: Build x64 example_sdl2_opengl3
  149. shell: cmd
  150. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release'
  151. if: github.event_name == 'workflow_run'
  152. - name: Build x64 example_sdl2_directx11
  153. shell: cmd
  154. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release'
  155. - name: Build x64 example_win32_directx9
  156. shell: cmd
  157. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=x64 /p:Configuration=Release'
  158. if: github.event_name == 'workflow_run'
  159. - name: Build x64 example_win32_directx10
  160. shell: cmd
  161. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=x64 /p:Configuration=Release'
  162. if: github.event_name == 'workflow_run'
  163. - name: Build x64 example_win32_directx11
  164. shell: cmd
  165. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release'
  166. if: github.event_name == 'workflow_run'
  167. - name: Build x64 example_win32_directx12
  168. shell: cmd
  169. run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx12/example_win32_directx12.vcxproj /p:Platform=x64 /p:Configuration=Release'
  170. Linux:
  171. runs-on: ubuntu-22.04
  172. steps:
  173. - uses: actions/checkout@v4
  174. - name: Install Dependencies
  175. run: |
  176. sudo apt-get update
  177. sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev
  178. - name: Build example_null (extra warnings, gcc 32-bit)
  179. run: |
  180. make -C examples/example_null clean
  181. CXXFLAGS="$CXXFLAGS -m32 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1
  182. - name: Build example_null (extra warnings, gcc 64-bit)
  183. run: |
  184. make -C examples/example_null clean
  185. CXXFLAGS="$CXXFLAGS -m64 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1
  186. - name: Build example_null (extra warnings, clang 32-bit)
  187. run: |
  188. make -C examples/example_null clean
  189. CXXFLAGS="$CXXFLAGS -m32 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1
  190. - name: Build example_null (extra warnings, clang 64-bit)
  191. run: |
  192. make -C examples/example_null clean
  193. CXXFLAGS="$CXXFLAGS -m64 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1
  194. - name: Build example_null (extra warnings, empty IM_ASSERT)
  195. run: |
  196. cat > example_single_file.cpp <<'EOF'
  197. #define IM_ASSERT(x)
  198. #define IMGUI_IMPLEMENTATION
  199. #include "misc/single_file/imgui_single_file.h"
  200. #include "examples/example_null/main.cpp"
  201. EOF
  202. g++ -I. -std=c++11 -Wall -Wformat -Wextra -Werror -Wno-zero-as-null-pointer-constant -Wno-double-promotion -Wno-variadic-macros -Wno-empty-body -o example_single_file example_single_file.cpp
  203. - name: Build example_null (freetype)
  204. run: |
  205. make -C examples/example_null clean
  206. make -C examples/example_null WITH_FREETYPE=1
  207. - name: Build example_null (single file build)
  208. run: |
  209. cat > example_single_file.cpp <<'EOF'
  210. #define IMGUI_IMPLEMENTATION
  211. #include "misc/single_file/imgui_single_file.h"
  212. #include "examples/example_null/main.cpp"
  213. EOF
  214. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  215. - name: Build example_null (with ImWchar32)
  216. run: |
  217. cat > example_single_file.cpp <<'EOF'
  218. #define IMGUI_USE_WCHAR32
  219. #define IMGUI_IMPLEMENTATION
  220. #include "misc/single_file/imgui_single_file.h"
  221. #include "examples/example_null/main.cpp"
  222. EOF
  223. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  224. - name: Build example_null (with large ImDrawIdx + pointer ImTextureID)
  225. run: |
  226. cat > example_single_file.cpp <<'EOF'
  227. #define ImTextureID void*
  228. #define ImDrawIdx unsigned int
  229. #define IMGUI_IMPLEMENTATION
  230. #include "misc/single_file/imgui_single_file.h"
  231. #include "examples/example_null/main.cpp"
  232. EOF
  233. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  234. - name: Build example_null (with IMGUI_DISABLE_OBSOLETE_FUNCTIONS)
  235. run: |
  236. cat > example_single_file.cpp <<'EOF'
  237. #define IMGUI_DISABLE_OBSOLETE_FUNCTIONS
  238. #define IMGUI_IMPLEMENTATION
  239. #include "misc/single_file/imgui_single_file.h"
  240. #include "examples/example_null/main.cpp"
  241. EOF
  242. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  243. - name: Build example_null (with IMGUI_DISABLE_OBSOLETE_KEYIO)
  244. run: |
  245. cat > example_single_file.cpp <<'EOF'
  246. #define IMGUI_DISABLE_OBSOLETE_KEYIO
  247. #define IMGUI_IMPLEMENTATION
  248. #include "misc/single_file/imgui_single_file.h"
  249. #include "examples/example_null/main.cpp"
  250. EOF
  251. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  252. - name: Build example_null (with IMGUI_DISABLE_DEMO_WINDOWS and IMGUI_DISABLE_DEBUG_TOOLS)
  253. run: |
  254. cat > example_single_file.cpp <<'EOF'
  255. #define IMGUI_DISABLE_DEMO_WINDOWS
  256. #define IMGUI_DISABLE_DEBUG_TOOLS
  257. #define IMGUI_IMPLEMENTATION
  258. #include "misc/single_file/imgui_single_file.h"
  259. #include "examples/example_null/main.cpp"
  260. EOF
  261. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  262. - name: Build example_null (with IMGUI_DISABLE_FILE_FUNCTIONS)
  263. run: |
  264. cat > example_single_file.cpp <<'EOF'
  265. #define IMGUI_DISABLE_FILE_FUNCTIONS
  266. #define IMGUI_IMPLEMENTATION
  267. #include "misc/single_file/imgui_single_file.h"
  268. #include "examples/example_null/main.cpp"
  269. EOF
  270. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  271. - name: Build example_null (with IMGUI_USE_BGRA_PACKED_COLOR)
  272. run: |
  273. cat > example_single_file.cpp <<'EOF'
  274. #define IMGUI_USE_BGRA_PACKED_COLOR
  275. #define IMGUI_IMPLEMENTATION
  276. #include "misc/single_file/imgui_single_file.h"
  277. #include "examples/example_null/main.cpp"
  278. EOF
  279. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  280. - name: Build example_null (with IM_VEC2_CLASS_EXTRA and IM_VEC4_CLASS_EXTRA)
  281. run: |
  282. cat > example_single_file.cpp <<'EOF'
  283. struct MyVec2 { float x; float y; MyVec2(float x, float y) : x(x), y(y) { } };
  284. struct MyVec4 { float x; float y; float z; float w;
  285. MyVec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) { } };
  286. #define IM_VEC2_CLASS_EXTRA \
  287. ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \
  288. operator MyVec2() const { return MyVec2(x, y); }
  289. #define IM_VEC4_CLASS_EXTRA \
  290. ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \
  291. operator MyVec4() const { return MyVec4(x, y, z, w); }
  292. #define IMGUI_IMPLEMENTATION
  293. #include "misc/single_file/imgui_single_file.h"
  294. #include "examples/example_null/main.cpp"
  295. EOF
  296. g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  297. - name: Build example_null (without c++ runtime, Clang)
  298. run: |
  299. cat > example_single_file.cpp <<'EOF'
  300. #define IMGUI_IMPLEMENTATION
  301. #define IMGUI_DISABLE_DEMO_WINDOWS
  302. #include "misc/single_file/imgui_single_file.h"
  303. #include "examples/example_null/main.cpp"
  304. EOF
  305. clang++ -I. -std=c++11 -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp
  306. - name: Build example_glfw_opengl2
  307. run: make -C examples/example_glfw_opengl2
  308. - name: Build example_glfw_opengl3
  309. run: make -C examples/example_glfw_opengl3
  310. if: github.event_name == 'workflow_run'
  311. - name: Build example_sdl2_opengl2
  312. run: make -C examples/example_sdl2_opengl2
  313. if: github.event_name == 'workflow_run'
  314. - name: Build example_sdl2_opengl3
  315. run: make -C examples/example_sdl2_opengl3
  316. - name: Build with IMGUI_IMPL_VULKAN_NO_PROTOTYPES
  317. run: g++ -c -I. -std=c++11 -DIMGUI_IMPL_VULKAN_NO_PROTOTYPES=1 backends/imgui_impl_vulkan.cpp
  318. MacOS:
  319. runs-on: macos-latest
  320. steps:
  321. - uses: actions/checkout@v4
  322. - name: Install Dependencies
  323. run: |
  324. brew install glfw3 sdl2
  325. - name: Build example_null (extra warnings, clang 64-bit)
  326. run: make -C examples/example_null WITH_EXTRA_WARNINGS=1
  327. - name: Build example_null (single file build)
  328. run: |
  329. cat > example_single_file.cpp <<'EOF'
  330. #define IMGUI_IMPLEMENTATION
  331. #include "misc/single_file/imgui_single_file.h"
  332. #include "examples/example_null/main.cpp"
  333. EOF
  334. clang++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
  335. - name: Build example_null (without c++ runtime)
  336. run: |
  337. cat > example_single_file.cpp <<'EOF'
  338. #define IMGUI_IMPLEMENTATION
  339. #include "misc/single_file/imgui_single_file.h"
  340. #include "examples/example_null/main.cpp"
  341. EOF
  342. clang++ -I. -std=c++11 -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp
  343. - name: Build example_glfw_opengl2
  344. run: make -C examples/example_glfw_opengl2
  345. - name: Build example_glfw_opengl3
  346. run: make -C examples/example_glfw_opengl3
  347. if: github.event_name == 'workflow_run'
  348. - name: Build example_glfw_metal
  349. run: make -C examples/example_glfw_metal
  350. - name: Build example_sdl2_metal
  351. run: make -C examples/example_sdl2_metal
  352. - name: Build example_sdl2_opengl2
  353. run: make -C examples/example_sdl2_opengl2
  354. if: github.event_name == 'workflow_run'
  355. - name: Build example_sdl2_opengl3
  356. run: make -C examples/example_sdl2_opengl3
  357. - name: Build example_apple_metal
  358. run: xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos
  359. - name: Build example_apple_opengl2
  360. run: xcodebuild -project examples/example_apple_opengl2/example_apple_opengl2.xcodeproj -target example_osx_opengl2
  361. iOS:
  362. runs-on: macos-latest
  363. steps:
  364. - uses: actions/checkout@v4
  365. - name: Build example_apple_metal
  366. run: |
  367. # Code signing is required, but we disable it because it is irrelevant for CI builds.
  368. xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_ios CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
  369. Emscripten:
  370. runs-on: ubuntu-22.04
  371. steps:
  372. - uses: actions/checkout@v4
  373. - name: Install Dependencies
  374. run: |
  375. wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz
  376. tar -xvf master.tar.gz
  377. emsdk-master/emsdk update
  378. emsdk-master/emsdk install latest
  379. emsdk-master/emsdk activate latest
  380. - name: Build example_sdl2_opengl3 with Emscripten
  381. run: |
  382. pushd emsdk-master
  383. source ./emsdk_env.sh
  384. popd
  385. make -C examples/example_sdl2_opengl3 -f Makefile.emscripten
  386. - name: Build example_glfw_wgpu
  387. run: |
  388. pushd emsdk-master
  389. source ./emsdk_env.sh
  390. popd
  391. make -C examples/example_glfw_wgpu -f Makefile.emscripten
  392. Android:
  393. runs-on: ubuntu-22.04
  394. steps:
  395. - uses: actions/checkout@v4
  396. - name: Build example_android_opengl3
  397. run: |
  398. cd examples/example_android_opengl3/android
  399. gradle assembleDebug --stacktrace