Add kokoro build config file and helper script

Build config sets timeout to 40 minutes.
helper script relies on choco to install rustup, which is used
to install rust toolchain.

Bug: 213603713
Test: Tested the toolchain setup part of the script in a
      codelab repo.
Change-Id: Ibf139bbc4ff6fe6c811652767dd885584414dda6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3421515
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Brandon Amiosci <brandonamiosci@google.com>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
diff --git a/ci/kokoro/windows/common.cfg b/ci/kokoro/windows/common.cfg
new file mode 100644
index 0000000..8749e89
--- /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 0000000..9605de8
--- /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 0000000..e025537
--- /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=<rust-toolchain
+echo [%TIME%] installing rust %rust_version%-x86_64-pc-windows-msvc
+rustup toolchain install %rust_version%-x86_64-pc-windows-msvc
+
+rustup component add clippy
+rustup component add rustfmt
+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%
diff --git a/ci/kokoro/windows/presubmit.cfg b/ci/kokoro/windows/presubmit.cfg
new file mode 100644
index 0000000..9605de8
--- /dev/null
+++ b/ci/kokoro/windows/presubmit.cfg
@@ -0,0 +1,3 @@
+# Format: //devtools/kokoro/config/proto/build.proto
+
+build_file: "crosvm/ci/kokoro/windows/crosvm_build.bat"