From 4f2be0edb69db3449ba76233f95e27d9facfc094 Mon Sep 17 00:00:00 2001 From: Ashley Canning Date: Mon, 28 Aug 2023 12:11:17 +0100 Subject: [PATCH 1/4] see detailed build report & verify cache is working --- unity-renderer/Assets/Scripts/Editor/BuildCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs b/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs index 0918fe58a0..a0279387d3 100644 --- a/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs +++ b/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs @@ -158,7 +158,7 @@ static void PerformBuild() PlayerSettings.WebGL.emscriptenArgs = " --profiling-funcs "; } - var buildSummary = BuildPipeline.BuildPlayer(GetEnabledScenes(), fixedBuildPath, buildTarget, GetBuildOptions()); + var buildSummary = BuildPipeline.BuildPlayer(GetEnabledScenes(), fixedBuildPath, buildTarget, GetBuildOptions() | BuildOptions.DetailedBuildReport); Console.WriteLine(":: Done with build process"); if (buildSummary.summary.result != BuildResult.Succeeded) From c99cfa70df85fa7919be68c9324fe2e62c9ab604 Mon Sep 17 00:00:00 2001 From: Ashley Canning Date: Mon, 28 Aug 2023 13:31:04 +0100 Subject: [PATCH 2/4] Test build cache --- unity-renderer/Assets/Scripts/Editor/BuildCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs b/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs index a0279387d3..f6262b0582 100644 --- a/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs +++ b/unity-renderer/Assets/Scripts/Editor/BuildCommand.cs @@ -159,7 +159,7 @@ static void PerformBuild() } var buildSummary = BuildPipeline.BuildPlayer(GetEnabledScenes(), fixedBuildPath, buildTarget, GetBuildOptions() | BuildOptions.DetailedBuildReport); - Console.WriteLine(":: Done with build process"); + Console.WriteLine(":: Done with build process - "); if (buildSummary.summary.result != BuildResult.Succeeded) { From 2def5554f5d6f06f4ad276217ad0edc603def75b Mon Sep 17 00:00:00 2001 From: Ashley Canning Date: Tue, 29 Aug 2023 10:43:36 +0100 Subject: [PATCH 3/4] add timestamps to build --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a95504ac76..c3b1041171 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -104,6 +104,7 @@ commands: command: | apt-get update apt-get install -y zip jq gpg + apt-get install moreutils - run: &HASH_UNITY_FILES name: Get the hash of source files command: ./scripts/hash-unity-files.sh @@ -130,7 +131,7 @@ commands: if [[ ! -e ${BUILD_PATH} ]] || [[ ! -e "${PROJECT_PATH}/build-logs.txt" ]] || [[ ! -n "$(ls -A ${BUILD_PATH})" ]]; then mkdir -p ${BUILD_PATH} - ./ci-build.sh + ./ci-build.sh | ts else echo "Skipping build, using cached artifacts." fi; From a37fc8775107b4b6d4e756af8f5fee82e7c56619 Mon Sep 17 00:00:00 2001 From: Ashley Canning Date: Tue, 29 Aug 2023 13:55:45 +0100 Subject: [PATCH 4/4] skip question --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c3b1041171..9b12f8240a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -104,7 +104,7 @@ commands: command: | apt-get update apt-get install -y zip jq gpg - apt-get install moreutils + apt-get install -y moreutils - run: &HASH_UNITY_FILES name: Get the hash of source files command: ./scripts/hash-unity-files.sh