summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
author Joe Onorato <joeo@google.com> 2024-12-06 12:56:54 -0800
committer Joe Onorato <joeo@google.com> 2024-12-09 11:22:38 -0800
commit91ece41f1ebd2334ceb8ff3d861b914906e63aee (patch)
treef4628014b935c1f144343f759d6681883408b7a9 /ci
parent029c50ad32161fc41f698fad013edcd057d5f900 (diff)
Add source_tree_size artifact to the android_metadata builds.
Bug: 383124666 Test: treehugger Change-Id: I32150b4903438934794510a718fcd1e0ffb086d2
Diffstat (limited to 'ci')
-rwxr-xr-xci/build_metadata20
1 files changed, 18 insertions, 2 deletions
diff --git a/ci/build_metadata b/ci/build_metadata
index cd011c8679..3e9218f200 100755
--- a/ci/build_metadata
+++ b/ci/build_metadata
@@ -14,15 +14,31 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-set -ex
+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/soong/bin/m dist ${TARGETS[@]}
+# 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 $?