blob: b0314fbe74fd13e1ed675fe08aacfa0bdfa63fcd [file] [log] [blame]
#!/bin/bash
#
# Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
#
# SPDX-License-Identifier: MIT
#
#!/bin/bash
#
# Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
#
# SPDX-License-Identifier: MIT
#
./scripts/publish.sh
if [[ "$SUBMIT_TYPE" == "daily" ]] || [[ "$SUBMIT_TYPE" == "release" ]]; then
make docs
if [ -d $LOCAL_DOC_PATH ]; then
pushd $LOCAL_DOC_PATH >/dev/null
publish_docoment
if [ $? -ne 0 ]; then
echo "Failed to update document"
else
echo "Document updated!"
fi
popd >/dev/null
else
echo "$LOCAL_DOC_PATH not exist!"
fi
fi
# Manually cherry pick patches
./scripts/cherry_pick.sh
source scripts/gen_package_combination.sh
index=0
while IFS= read -r LINE; do
source scripts/pkg_env.sh $index gen_all
[ "$?" -ne 0 ] && echo "Ignore unsupported combination!" && continue
make package
[ "$?" -ne 0 ] && echo "Failed to make!" && exit 3
if [[ "$SUBMIT_TYPE" == "release" ]]; then
publish_package
[ "$?" -ne 0 ] && echo "Failed to source scripts/scp.sh!" && exit 4
fi
index=$((index + 1))
done <"$PACKAGE_COMBINATION"
echo "Build completed!"