1# -*- bazel-starlark -*- 2# Copyright 2024 The Chromium Authors 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5"""Template for Siso backend config. 6 7Copy this to backend.star and edit property values for your backend. 8""" 9 10load("@builtin//struct.star", "module") 11 12def __platform_properties(ctx): 13 # You can use ctx to access file by ctx.fs etc. 14 # See https://chromium.googlesource.com/infra/infra/+/refs/heads/main/go/src/infra/build/siso/docs/starlark_config.md#initialization 15 return { 16 "default": { 17 "OSFamily": "Linux", 18 "container-image": "<container image used by RBE>", 19 "label:<label_key>": "<label_value>", 20 }, 21 # Large workers are usually used for Python actions like generate bindings, mojo generators etc 22 # They can run on Linux workers. 23 "large": { 24 "OSFamily": "Linux", 25 "container-image": "<container image used by RBE>", 26 "label:<label_key>": "<label_value>", 27 }, 28 } 29 30backend = module( 31 "backend", 32 platform_properties = __platform_properties, 33) 34