File tree Expand file tree Collapse file tree
.github/workflows/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,15 @@ RUN_UNITY() {
1010 unity-cli run --unity-project " ${UNITY_PROJECT_PATH} " --unity-editor " ${UNITY_EDITOR_PATH} " -quit -batchmode -nographics -buildTarget " ${BUILD_TARGET} " --log-name " ${PROJECT} " " $@ "
1111}
1212
13+ RUN_UNITY || true
14+
15+ (cd " ${UNITY_PROJECT_PATH} " && openupm add com.utilities.buildpipeline) || {
16+ echo " Failed to add build pipeline package" ;
17+ exit 1;
18+ }
19+
20+ RUN_UNITY -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset || true
21+
1322case " $PROJECT " in
1423 compiler-warnings)
1524 RUN_UNITY
@@ -22,8 +31,6 @@ case "$PROJECT" in
2231 }
2332 ;;
2433 build-warnings|build-errors)
25- (cd " ${UNITY_PROJECT_PATH} " && openupm add com.utilities.buildpipeline)
26- RUN_UNITY -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset
2734 ec=0; RUN_UNITY -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/Main.unity ${BUILD_ARGS: +" ${BUILD_ARGS} " } || ec=$?
2835 if [[ " $PROJECT " == " build-errors" ]]; then
2936 [[ $ec -eq 0 ]] && {
You can’t perform that action at this time.
0 commit comments