Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

see detailed build report & verify cache is working #5645

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ commands:
command: |
apt-get update
apt-get install -y zip jq gpg
apt-get install -y moreutils
- run: &HASH_UNITY_FILES
name: Get the hash of source files
command: ./scripts/hash-unity-files.sh
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions unity-renderer/Assets/Scripts/Editor/BuildCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ static void PerformBuild()
PlayerSettings.WebGL.emscriptenArgs = " --profiling-funcs ";
}

var buildSummary = BuildPipeline.BuildPlayer(GetEnabledScenes(), fixedBuildPath, buildTarget, GetBuildOptions());
Console.WriteLine(":: Done with build process");
var buildSummary = BuildPipeline.BuildPlayer(GetEnabledScenes(), fixedBuildPath, buildTarget, GetBuildOptions() | BuildOptions.DetailedBuildReport);
Console.WriteLine(":: Done with build process - ");

if (buildSummary.summary.result != BuildResult.Succeeded)
{
Expand Down