summaryrefslogtreecommitdiff
path: root/ci/build_metadata
blob: 3e9218f200a22d5429fef0a8d02b3fede6bc1443 (plain)
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
#/bin/bash

# Copyright 2024, The Android Open Source Project
#
# 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.

set -x

source build/make/shell_utils.sh

export TARGET_PRODUCT=aosp_arm64
export TARGET_RELEASE=trunk_staging
export TARGET_BUILD_VARIANT=eng

import_build_vars \
        OUT_DIR \
        DIST_DIR \
        HOST_OUT_EXECUTABLES \
    || exit $?

TARGETS=(
    all_teams
    source_tree_size
    release_config_metadata
)

# Build modules
build/soong/bin/m dist ${TARGETS[@]} || exit $?

# List all source files in the tree
( \
    $HOST_OUT_EXECUTABLES/source_tree_size -o $DIST_DIR/all_source_tree_files.pb \
        && gzip -fn $DIST_DIR/all_source_tree_files.pb \
) || exit $?