Build: Do not generate NSPE CMake commands for NSOFF configs
When TF-M config disables NS applications, NSPE CMake commands should
not be generated and run in CI job.
Also, when NSPE build is skipped, build folder "nspe" should not be
archived.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I35b2394c4cce1245d30bcdb7c03c6afd289f648e
diff --git a/run-build.sh b/run-build.sh
index c220fad..7a9aec2 100755
--- a/run-build.sh
+++ b/run-build.sh
@@ -119,5 +119,9 @@
rm -rf ci_build/*
eval $spe_cmake_config_cmd
fi
+eval $spe_cmake_build_cmd
-eval "$spe_cmake_build_cmd; $nspe_cmake_config_cmd; $nspe_cmake_build_cmd; $post_build_cmd"
+eval $nspe_cmake_config_cmd
+eval $nspe_cmake_build_cmd
+
+eval $post_build_cmd