From 9073fc3dc37d95c3fcaf8eced60a070fe053cc9c Mon Sep 17 00:00:00 2001 From: Ben Doherty Date: Tue, 27 Jul 2021 19:54:51 -0700 Subject: [PATCH] Attempt to fix Windows CI by turning off concurrent builds (#4395) --- build/windows/build-github.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build/windows/build-github.bat b/build/windows/build-github.bat index dbd3f346813..ce02c0f7ba8 100644 --- a/build/windows/build-github.bat +++ b/build/windows/build-github.bat @@ -2,6 +2,8 @@ setlocal +systeminfo + echo Disk info before building: call :ShowDiskInfo @@ -112,7 +114,20 @@ cmake ..\.. ^ -DFILAMENT_WINDOWS_CI_BUILD:BOOL=ON ^ -DFILAMENT_SUPPORTS_VULKAN=ON ^ || exit /b + +:: Attempt to fix "error C1060: compiler is out of heap space" seen on CI. +:: Some resource libraries require significant heap space to compile, so first compile them serially. +@echo on +cmake --build . --target filagui --config %config% || exit /b +cmake --build . --target gltfio_resources --config %config% || exit /b +cmake --build . --target gltfio_resources_lite --config %config% || exit /b +cmake --build . --target gltf-resources --config %config% || exit /b +cmake --build . --target filamentapp-resources --config %config% || exit /b +cmake --build . --target sample-resources --config %config% || exit /b +cmake --build . --target suzanne-resources --config %config% || exit /b + cmake --build . %INSTALL% --config %config% -- /m || exit /b +@echo off echo Disk info after building variant: %variant% call :ShowDiskInfo