CI: packaging

This commit is contained in:
Max Kainov 2024-11-14 23:05:42 +00:00
parent 52ae6b48c2
commit e0c023b8bd
2 changed files with 19 additions and 1 deletions

View File

@ -135,6 +135,24 @@ def main():
)
res = results[-1].is_ok()
if res and JobStages.UNSHALLOW in stages:
results.append(
Result.create_from_command_execution(
name="Repo Unshallow",
command="git fetch --depth 10000 --filter=tree:0",
with_log=True,
)
)
if results[-1].is_ok():
try:
version = CHVersion.get_version()
print(f"Got version from repo [{version}]")
except Exception as e:
results[-1].set_failed().set_info(
"Failed to retrieve version from repo: ex [{e}]"
)
res = results[-1].is_ok()
if res and JobStages.BUILD in stages:
Shell.check("sccache --show-stats")
results.append(

View File

@ -21,7 +21,7 @@ while [[ "$#" -gt 0 ]]; do
--fast-test) FAST_TEST=1 ;;
--s3-storage) EXPORT_S3_STORAGE_POLICIES=1 ;;
--no-azure) NO_AZURE=1 ;;
*) echo "Unknown option: $1" ; exit 1 ;;
*) echo "Unknown option: $1" ;;
esac
shift
done