diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 40ddf4f90678..6fd81c1d6903 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -15,6 +15,7 @@ runs: channel-priority: strict environment-file: conda/build-environment.yaml auto-activate-base: false + conda-solver: classic use-only-tar-bz2: true python-version: 3.9 condarc-file: conda/condarc @@ -25,6 +26,7 @@ runs: channel-priority: strict environment-file: conda/build-environment.yaml auto-activate-base: false + conda-solver: classic use-only-tar-bz2: true python-version: 3.9 condarc-file: conda/condarc @@ -33,3 +35,5 @@ runs: run: | conda info conda list + conda info --envs + conda list --name base diff --git a/conda/build_win.bat b/conda/build_win.bat index 59d0d07340c7..e37a06ce7c05 100644 --- a/conda/build_win.bat +++ b/conda/build_win.bat @@ -15,4 +15,6 @@ :: specific language governing permissions and limitations :: under the License. -conda build --output-folder=conda/pkg conda/recipe +echo on + +conda build --output-folder=conda/pkg conda/recipe || exit /b diff --git a/conda/recipe/bld.bat b/conda/recipe/bld.bat index f8988b135793..561dcff87802 100644 --- a/conda/recipe/bld.bat +++ b/conda/recipe/bld.bat @@ -32,7 +32,7 @@ cmake ^ -DUSE_RANDOM=ON ^ -DUSE_PROFILER=ON ^ -DINSTALL_DEV=ON ^ - %SRC_DIR% + %SRC_DIR% || exit /b cd .. :: defer build to install stage to avoid rebuild. diff --git a/conda/recipe/install_libtvm.bat b/conda/recipe/install_libtvm.bat index f423c521f84e..c56f83bfaaef 100644 --- a/conda/recipe/install_libtvm.bat +++ b/conda/recipe/install_libtvm.bat @@ -15,8 +15,10 @@ :: specific language governing permissions and limitations :: under the License. -cmake --build build --config Release --target install +echo on + +cmake --build build --config Release --target install || exit /b :: Copy files into library bin so that they can be found -cp %LIBRARY_LIB%\tvm.dll %LIBRARY_BIN%\tvm.dll -cp %LIBRARY_LIB%\tvm_runtime.dll %LIBRARY_BIN%\tvm_runtime.dll +cp %LIBRARY_LIB%\tvm.dll %LIBRARY_BIN%\tvm.dll || exit /b +cp %LIBRARY_LIB%\tvm_runtime.dll %LIBRARY_BIN%\tvm_runtime.dll || exit /b diff --git a/conda/recipe/install_tvm_python.bat b/conda/recipe/install_tvm_python.bat index 96187468c2b2..07c0465b8443 100644 --- a/conda/recipe/install_tvm_python.bat +++ b/conda/recipe/install_tvm_python.bat @@ -16,5 +16,5 @@ :: under the License. echo on -cd %SRC_DIR%\python -%PYTHON% setup.py install --single-version-externally-managed --record=%SRC_DIR%\record.txt +cd %SRC_DIR%\python || exit /b +%PYTHON% setup.py install --single-version-externally-managed --record=%SRC_DIR%\record.txt || exit /b