2020-12-10 11:27:21 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
if not exist WORKSPACE (
|
|
|
|
echo Run from project root
|
|
|
|
exit /b 1
|
|
|
|
)
|
|
|
|
|
|
|
|
rd /s /q bazel-dist
|
|
|
|
|
2020-12-12 01:18:09 +01:00
|
|
|
set BUILDARGS=-k -c opt dist --color=yes --@io_bazel_rules_rust//worker:use_worker=False
|
|
|
|
call .\bazel build %BUILDARGS%
|
2020-12-10 11:27:21 +01:00
|
|
|
:: repeat on failure
|
2020-12-12 01:18:09 +01:00
|
|
|
IF %ERRORLEVEL% NEQ 0 call .\bazel build %BUILDARGS%
|
2020-12-10 11:27:21 +01:00
|
|
|
|
|
|
|
tar xvf bazel-bin\dist.tar
|