2019-10-23 17:10:47 +02:00
name : build
2019-10-30 15:10:43 +01:00
on :
push : {}
pull_request : {}
schedule :
- cron : '0 9 * * *'
2019-10-23 17:10:47 +02:00
jobs :
Windows :
runs-on : windows-2019
env :
2020-01-20 14:57:39 +01:00
VS_PATH : C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\
2019-10-23 17:10:47 +02:00
MSBUILD_PATH : C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\
2019-10-30 10:30:46 +01:00
# Until gh-actions allow us to use env variables inside other env variables (because we need %GITHUB_WORKSPACE%) we have to use relative path to imgui/examples/example_name directory.
SDL2_DIR : ..\..\SDL2-devel-2.0.10-VC\SDL2-2.0.10\
VULKAN_SDK : ..\..\vulkan-sdk-1.1.121.2\
2019-10-23 17:10:47 +02:00
steps :
- uses : actions/checkout@v1
with :
fetch-depth : 1
2019-10-30 10:30:46 +01:00
- name : Install Dependencies
shell : powershell
run : |
Invoke-WebRequest -Uri "https://www.libsdl.org/release/SDL2-devel-2.0.10-VC.zip" -OutFile "SDL2-devel-2.0.10-VC.zip"
Expand-Archive -Path SDL2-devel-2.0.10-VC.zip
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
Expand-Archive -Path vulkan-sdk-1.1.121.2.zip
2019-10-23 17:10:47 +02:00
- name : Fix Projects
shell : powershell
run : |
# WARNING: This will need updating if toolset/sdk change in project files!
gci -recurse -filter "*.vcxproj" | ForEach-Object {
2019-10-30 08:49:57 +01:00
# Fix SDK and toolset for most samples.
(Get-Content $_.FullName) -Replace "<PlatformToolset>v110</PlatformToolset>","<PlatformToolset>v142</PlatformToolset>" | Set-Content -Path $_.FullName
(Get-Content $_.FullName) -Replace "<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>","<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>" | Set-Content -Path $_.FullName
# Fix SDK and toolset for samples that require newer SDK/toolset. At the moment it is only dx12.
(Get-Content $_.FullName) -Replace "<PlatformToolset>v140</PlatformToolset>","<PlatformToolset>v142</PlatformToolset>" | Set-Content -Path $_.FullName
(Get-Content $_.FullName) -Replace "<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>","<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>" | Set-Content -Path $_.FullName
2019-10-23 17:10:47 +02:00
}
2019-10-30 09:45:27 +01:00
# 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.
2020-01-20 14:57:39 +01:00
- name : Build example_null (extra warnings, mingw 64-bit)
2020-03-19 11:10:58 +01:00
run : mingw32-make -C examples/example_null WITH_EXTRA_WARNINGS=1
2019-11-25 13:02:47 +01:00
2020-01-20 14:57:39 +01:00
- name : Build example_null (extra warnings, msvc 64-bit)
shell : cmd
run : |
cd examples\example_null
"%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x64 && .\build_win32.bat /W4
2020-01-10 18:36:26 +01:00
- name : Build example_null (single file build)
shell : bash
run : |
2020-03-03 17:45:06 +01:00
echo '#define IMGUI_IMPLEMENTATION' > example_single_file.cpp
2020-01-10 18:36:26 +01:00
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp
2019-11-26 10:24:01 +01:00
2020-04-29 12:32:16 +02:00
- name : Build example_null (with IMGUI_DISABLE_WIN32_FUNCTIONS)
shell : bash
run : |
echo '#define IMGUI_DISABLE_WIN32_FUNCTIONS' > example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp
- name : Build example_null (as DLL)
shell : cmd
run : |
"%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x64
echo '#ifdef _EXPORT' > example_single_file.cpp
echo '# define IMGUI_API __declspec(dllexport)' >> example_single_file.cpp
echo '#else' >> example_single_file.cpp
echo '# define IMGUI_API __declspec(dllimport)' >> example_single_file.cpp
echo '#endif' >> example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
cl.exe /D_USRDLL /D_WINDLL /D_EXPORT /I. example_single_file.cpp /LD /FeImGui.dll /link
cl.exe /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp
2019-10-30 09:45:27 +01:00
- name : Build Win32 example_glfw_opengl2
2019-10-23 17:10:47 +02:00
shell : cmd
2019-10-30 09:45:27 +01:00
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release'
2019-10-23 17:10:47 +02:00
2019-10-30 09:45:27 +01:00
- name : Build Win32 example_glfw_opengl3
2019-10-23 17:10:47 +02:00
shell : cmd
2019-10-30 09:45:27 +01:00
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
2019-10-30 10:30:46 +01:00
- name : Build Win32 example_glfw_vulkan
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 10:30:46 +01:00
- name : Build Win32 example_sdl_vulkan
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 10:30:46 +01:00
- name : Build Win32 example_sdl_opengl2
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 10:30:46 +01:00
- name : Build Win32 example_sdl_opengl3
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release'
- name : Build Win32 example_sdl_directx11
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_directx11/example_sdl_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 10:30:46 +01:00
2019-10-30 09:45:27 +01:00
- name : Build Win32 example_win32_directx9
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=Win32 /p:Configuration=Release'
- name : Build Win32 example_win32_directx10
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=Win32 /p:Configuration=Release'
- name : Build Win32 example_win32_directx11
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build x64 example_glfw_opengl2
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build x64 example_glfw_opengl3
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 10:30:46 +01:00
- name : Build x64 example_glfw_vulkan
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release'
- name : Build x64 example_sdl_vulkan
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 10:30:46 +01:00
- name : Build x64 example_sdl_opengl2
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 10:30:46 +01:00
- name : Build x64 example_sdl_opengl3
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 10:30:46 +01:00
- name : Build x64 example_sdl_directx11
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_directx11/example_sdl_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 09:45:27 +01:00
- name : Build x64 example_win32_directx9
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build x64 example_win32_directx10
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build x64 example_win32_directx11
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build x64 example_win32_directx12
shell : cmd
run : '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx12/example_win32_directx12.vcxproj /p:Platform=x64 /p:Configuration=Release'
2019-10-23 17:10:47 +02:00
Linux :
2020-08-07 16:26:16 +02:00
runs-on : ubuntu-20.04
2019-10-23 17:10:47 +02:00
steps :
- uses : actions/checkout@v1
with :
fetch-depth : 1
- name : Install Dependencies
run : |
sudo apt-get update
2020-03-18 08:26:51 +01:00
sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev
2019-10-23 17:10:47 +02:00
2019-11-26 11:17:58 +01:00
- name : Build example_null (extra warnings, gcc 32-bit)
run : |
make -C examples/example_null clean
2020-03-19 11:10:58 +01:00
CXXFLAGS="$CXXFLAGS -m32 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1
2019-11-26 11:17:58 +01:00
- name : Build example_null (extra warnings, gcc 64-bit)
run : |
make -C examples/example_null clean
2020-03-19 11:10:58 +01:00
CXXFLAGS="$CXXFLAGS -m64 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1
2019-11-26 11:17:58 +01:00
- name : Build example_null (extra warnings, clang 32-bit)
run : |
make -C examples/example_null clean
2020-03-19 11:10:58 +01:00
CXXFLAGS="$CXXFLAGS -m32 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1
2019-11-26 11:17:58 +01:00
- name : Build example_null (extra warnings, clang 64-bit)
run : |
make -C examples/example_null clean
2020-03-19 11:10:58 +01:00
CXXFLAGS="$CXXFLAGS -m64 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1
2019-10-30 09:45:27 +01:00
2020-03-18 08:26:51 +01:00
- name : Build example_null (freetype)
run : |
make -C examples/example_null clean
make -C examples/example_null WITH_FREETYPE=1
2020-01-10 18:36:26 +01:00
- name : Build example_null (single file build)
run : |
2020-03-03 17:45:06 +01:00
echo '#define IMGUI_IMPLEMENTATION' > example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
- name : Build example_null (with ImWchar32)
run : |
2020-03-24 20:11:05 +01:00
echo '#define IMGUI_USE_WCHAR32' > example_single_file.cpp
2020-01-10 18:36:26 +01:00
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
2019-11-26 10:24:01 +01:00
2020-03-16 09:04:36 +01:00
- name : Build example_null (with large ImDrawIdx)
run : |
echo '#define ImDrawIdx unsigned int' > example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
- name : Build example_null (with IMGUI_DISABLE_OBSOLETE_FUNCTIONS)
run : |
echo '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' > example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
- name : Build example_null (with IMGUI_DISABLE_DEMO_WINDOWS and IMGUI_DISABLE_METRICS_WINDOW)
run : |
echo '#define IMGUI_DISABLE_DEMO_WINDOWS' > example_single_file.cpp
echo '#define IMGUI_DISABLE_METRICS_WINDOW' >> example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
2020-04-29 12:32:16 +02:00
- name : Build example_null (with IMGUI_DISABLE_FILE_FUNCTIONS)
run : |
echo '#define IMGUI_DISABLE_FILE_FUNCTIONS' > example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
- name : Build example_null (with IMGUI_USE_BGRA_PACKED_COLOR)
run : |
echo '#define IMGUI_USE_BGRA_PACKED_COLOR' > example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
- name : Build example_null (with IM_VEC2_CLASS_EXTRA and IM_VEC4_CLASS_EXTRA)
run : |
echo 'struct MyVec2 { float x; float y; MyVec2(float x, float y) : x(x), y(y) { } };' > example_single_file.cpp
echo 'struct MyVec4 { float x; float y; float z; float w;' >> example_single_file.cpp
echo 'MyVec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) { } };' >> example_single_file.cpp
echo '#define IM_VEC2_CLASS_EXTRA \' >> example_single_file.cpp
echo ' ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \' >> example_single_file.cpp
echo ' operator MyVec2() const { return MyVec2(x, y); }' >> example_single_file.cpp
echo '#define IM_VEC4_CLASS_EXTRA \' >> example_single_file.cpp
echo ' ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \' >> example_single_file.cpp
echo ' operator MyVec4() const { return MyVec4(x, y, z, w); }' >> example_single_file.cpp
echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
2020-05-25 12:25:22 +02:00
- name : Build example_null (without c++ runtime, Clang)
run : |
echo '#define IMGUI_IMPLEMENTATION' > example_single_file.cpp
echo '#define IMGUI_DISABLE_DEMO_WINDOWS' >> example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
clang++ -I. -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp
2019-10-30 09:45:27 +01:00
- name : Build example_glfw_opengl2
run : make -C examples/example_glfw_opengl2
- name : Build example_glfw_opengl3
run : make -C examples/example_glfw_opengl3
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build example_sdl_opengl2
run : make -C examples/example_sdl_opengl2
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build example_sdl_opengl3
run : make -C examples/example_sdl_opengl3
2019-10-23 17:10:47 +02:00
MacOS :
2019-11-11 14:47:39 +01:00
runs-on : macOS-latest
2019-10-23 17:10:47 +02:00
steps :
- uses : actions/checkout@v1
with :
fetch-depth : 1
- name : Install Dependencies
run : |
brew install glfw3
brew install sdl2
2020-01-20 14:57:39 +01:00
- name : Build example_null (extra warnings, clang 64-bit)
2020-03-19 11:10:58 +01:00
run : make -C examples/example_null WITH_EXTRA_WARNINGS=1
2019-10-30 09:45:27 +01:00
2020-01-10 18:36:26 +01:00
- name : Build example_null (single file build)
run : |
2020-03-03 17:45:06 +01:00
echo '#define IMGUI_IMPLEMENTATION' > example_single_file.cpp
2020-01-10 18:36:26 +01:00
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
clang++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp
2019-11-26 10:24:01 +01:00
2020-05-25 12:25:22 +02:00
- name : Build example_null (without c++ runtime)
run : |
echo '#define IMGUI_IMPLEMENTATION' > example_single_file.cpp
echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp
echo '#include "examples/example_null/main.cpp"' >> example_single_file.cpp
clang++ -I. -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp
2019-10-30 09:45:27 +01:00
- name : Build example_glfw_opengl2
run : make -C examples/example_glfw_opengl2
- name : Build example_glfw_opengl3
run : make -C examples/example_glfw_opengl3
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build example_glfw_metal
run : make -C examples/example_glfw_metal
2020-02-10 15:13:29 +01:00
- name : Build example_sdl_metal
run : make -C examples/example_sdl_metal
2019-10-30 09:45:27 +01:00
- name : Build example_sdl_opengl2
run : make -C examples/example_sdl_opengl2
2019-10-30 15:10:43 +01:00
if : github.event_name == 'schedule'
2019-10-30 09:45:27 +01:00
- name : Build example_sdl_opengl3
run : make -C examples/example_sdl_opengl3
- name : Build example_apple_metal
run : xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos
- name : Build example_apple_opengl2
run : xcodebuild -project examples/example_apple_opengl2/example_apple_opengl2.xcodeproj -target example_osx_opengl2
2019-10-23 17:10:47 +02:00
iOS :
2019-11-11 14:47:39 +01:00
runs-on : macOS-latest
2019-10-23 17:10:47 +02:00
steps :
- uses : actions/checkout@v1
with :
fetch-depth : 1
2019-10-30 09:45:27 +01:00
- name : Build example_apple_metal
2019-10-23 17:10:47 +02:00
run : |
# Code signing is required, but we disable it because it is irrelevant for CI builds.
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
Emscripten :
runs-on : ubuntu-18.04
steps :
- uses : actions/checkout@v1
with :
fetch-depth : 1
- name : Install Dependencies
run : |
2019-11-04 08:50:50 +01:00
wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz
tar -xvf master.tar.gz
emsdk-master/emsdk update
2020-08-12 16:26:42 +02:00
emsdk-master/emsdk install latest
emsdk-master/emsdk activate latest
2019-10-23 17:10:47 +02:00
2019-10-30 09:45:27 +01:00
- name : Build example_emscripten
2019-10-23 17:10:47 +02:00
run : |
2020-07-07 11:49:25 +02:00
pushd emsdk-master
source ./emsdk_env.sh
popd
2019-10-23 17:10:47 +02:00
make -C examples/example_emscripten
2020-09-28 11:29:54 +02:00
2020-10-08 14:06:46 +02:00
Discord-CI :
runs-on : ubuntu-18.04
if : always()
needs : [ Windows, Linux, MacOS, iOS, Emscripten]
steps :
- uses : dearimgui/github_discord_notifier@latest
2020-09-28 11:29:54 +02:00
with :
2020-10-08 14:06:46 +02:00
discord-webhook : ${{ secrets.DISCORD_CI_WEBHOOK }}
github-token : ${{ github.token }}
action-task : discord-jobs
discord-filter : "'{{ github.branch }}'.match(/master|docking|tables/g) != null && '{{ run.conclusion }}' != '{{ last_run.conclusion }}'"
discord-username : GitHub Actions
discord-job-new-failure-message : ''
discord-job-fixed-failure-message : ''
discord-job-new-failure-embed : |
{
"title": "`{{ job.name }}` job is failing on `{{ github.branch }}`!" ,
"description": "Commit [{{ github.context.payload.head_commit.title }}]({{ github.context.payload.head_commit.url }}) pushed to [{{ github.branch }}]({{ github.branch_url }}) broke [{{ job.name }}]({{ job.url }}) build job.\nFailing steps: {{ failing_steps }}" ,
"url": "{{ job.url }}" ,
"color": "0xFF0000" ,
"timestamp": "{{ run.updated_at }}"
}
discord-job-fixed-failure-embed : |
{
"title": "`{{ github.branch }}` branch is no longer failing!" ,
"description": "Build failures were fixed on [{{ github.branch }}]({{ github.branch_url }}) branch." ,
"color": "0x00FF00" ,
"url": "{{ github.context.payload.head_commit.url }}" ,
"timestamp": "{{ run.completed_at }}"
}