diff --git a/ci/kokoro/windows/common.cfg b/ci/kokoro/windows/common.cfg new file mode 100644 index 0000000000..8749e89fc7 --- /dev/null +++ b/ci/kokoro/windows/common.cfg @@ -0,0 +1,9 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +timeout_mins: 40 + +action { + define_artifacts { + regex: "logs/**/*" + } +} diff --git a/ci/kokoro/windows/continuous.cfg b/ci/kokoro/windows/continuous.cfg new file mode 100644 index 0000000000..9605de89ab --- /dev/null +++ b/ci/kokoro/windows/continuous.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "crosvm/ci/kokoro/windows/crosvm_build.bat" diff --git a/ci/kokoro/windows/crosvm_build.bat b/ci/kokoro/windows/crosvm_build.bat new file mode 100644 index 0000000000..e025537017 --- /dev/null +++ b/ci/kokoro/windows/crosvm_build.bat @@ -0,0 +1,43 @@ +:: 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 + +set /p rust_version=