-
Notifications
You must be signed in to change notification settings - Fork 3
/
BUILD
78 lines (69 loc) · 2.67 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 2024 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_toolchains//rules/exec_properties:exec_properties.bzl", "create_rbe_exec_properties_dict")
load("@rules_pkg//pkg:install.bzl", "pkg_install")
load("@rules_pkg//pkg:mappings.bzl", "pkg_files")
exports_files([".rustfmt.toml"])
platform(
name = "remote_platform",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
exec_properties = create_rbe_exec_properties_dict(
container_image = "docker://gcr.io/fcp-infra/fcp-build@sha256:4a33c4b91e3d146ed654a731ee4827629d8f2ebbcad21998082d7555c79a3f42",
os_family = "Linux",
),
parents = ["@local_config_platform//:host"],
)
# All release (i.e. production) binaries, along with their names in the
# destination directory.
_RELEASE_BINARIES = {
# keep-sorted start
"//containers/agg_core:oci_runtime_bundle.tar": "agg_core/container.tar",
"//containers/fed_sql:oci_runtime_bundle.tar": "fed_sql/container.tar",
"//containers/sql_server:oci_runtime_bundle.tar": "sql_server/container.tar",
"//containers/tff_server:oci_runtime_bundle.tar": "tff_server/container.tar",
"//ledger_enclave_app": "ledger/binary",
"//replicated_ledger_enclave_app": "replicated_ledger/binary",
# keep-sorted end
}
pkg_files(
name = "release_binaries",
srcs = _RELEASE_BINARIES.keys(),
renames = _RELEASE_BINARIES,
)
pkg_install(
name = "install_release_binaries",
srcs = [":release_binaries"],
)
# All release and testing binaries, along with their names in the destination
# directory.
_ALL_BINARIES = _RELEASE_BINARIES | {
# keep-sorted start
"//containers/confidential_transform_test_concat:oci_runtime_bundle.tar": "confidential_transform_test_concat/container.tar",
"//containers/test_concat:oci_runtime_bundle.tar": "test_concat/container.tar",
"//examples/square_enclave_app": "square_example/binary",
"//examples/sum_enclave_app": "sum_example/binary",
# keep-sorted end
}
pkg_files(
name = "all_binaries",
srcs = _ALL_BINARIES.keys(),
renames = _ALL_BINARIES,
)
pkg_install(
name = "install_all_binaries",
srcs = [":all_binaries"],
)