xref: /aosp_15_r20/external/crosvm/infra/recipe_modules/crosvm/examples/host_build_context.py (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1# Copyright 2022 The ChromiumOS Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5PYTHON_VERSION_COMPATIBILITY = "PY3"
6
7DEPS = [
8    "crosvm",
9    "recipe_engine/platform",
10    "recipe_engine/step",
11]
12
13
14def RunSteps(api):
15    with api.crosvm.host_build_context():
16        api.step("Build", ["cargo", "build"])
17
18
19def GenTests(api):
20    yield api.test("basic_linux") + api.platform("linux", 64)
21    yield api.test("basic_windows") + api.platform("win", 64)
22