mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
cb3cabe3ba
Pre 1.58.1 have CVE-2022-21658 Cros toolchain got upgraded to 1.58.1 BUG=None TEST=cq Change-Id: I2ce5a08b40bcc4895c4f2ecef83efd4162d67494 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3435385 Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Anton Romanov <romanton@google.com>
39 lines
1.3 KiB
Batchfile
39 lines
1.3 KiB
Batchfile
:: Copyright 2022 The Chromium OS Authors. All rights reserved.
|
|
:: Use of this source code is governed by a BSD-style license that can be
|
|
:: found in the LICENSE file.
|
|
|
|
:: Make environment changes (cd, env vars, etc.) local, so they don't affect the calling batch file
|
|
setlocal
|
|
|
|
:: Code under repo is checked out to %KOKORO_ARTIFACTS_DIR%\git.
|
|
:: The final directory name in this path is determined by the scm name specified
|
|
:: in the job configuration
|
|
cd %KOKORO_ARTIFACTS_DIR%\git\crosvm
|
|
|
|
:: Pin rustup to a known/tested version.
|
|
set rustup_version=1.24.3
|
|
|
|
:: Install rust toolchain through rustup.
|
|
echo [%TIME%] installing rustup %rustup_version%
|
|
choco install -y rustup.install --version=%rustup_version%
|
|
|
|
:: Reload path for installed rustup binary
|
|
call RefreshEnv.cmd
|
|
|
|
:: Toolchain version and necessary components will be automatically picked
|
|
:: up from rust-toolchain
|
|
cargo install bindgen
|
|
|
|
:: Reload path for installed rust toolchain.
|
|
call RefreshEnv.cmd
|
|
|
|
:: Log the version of the Rust toolchain
|
|
echo [%TIME%] Using Rust toolchain version:
|
|
cargo --version
|
|
rustc --version
|
|
|
|
echo [%TIME%] Calling crosvm\build_test.py
|
|
py ./tools/windows/build_test.py --copy True --job_type kokoro --skip_file_name .windows_build_test_skip
|
|
if %ERRORLEVEL% neq 0 ( exit /b %ERRORLEVEL% )
|
|
|
|
exit /b %ERRORLEVEL%
|