File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1010
1111upload_dir=" $( mktemp -d) "
1212
13+ build_dir=build
14+ if isLinux; then
15+ build_dir=obj/build
16+ fi
17+
1318# Release tarballs produced by a dist builder.
1419if [[ " ${DEPLOY-0} " -eq " 1" ]] || [[ " ${DEPLOY_ALT-0} " -eq " 1" ]]; then
15- dist_dir=build/dist
16- if isLinux; then
17- dist_dir=obj/build/dist
18- fi
20+ dist_dir=" ${build_dir} /dist"
1921 rm -rf " ${dist_dir} /doc"
2022 cp -r " ${dist_dir} " /* " ${upload_dir} "
2123fi
2426cp cpu-usage.csv " ${upload_dir} /cpu-${CI_JOB_NAME} .csv"
2527
2628# Build metrics generated by x.py.
27- cp " ${dist_dir} /.. /metrics.json" " ${upload_dir} /metrics-${CI_JOB_NAME} .json"
29+ cp " ${build_dir} /metrics.json" " ${upload_dir} /metrics-${CI_JOB_NAME} .json"
2830
2931# Toolstate data.
3032if [[ -n " ${DEPLOY_TOOLSTATES_JSON+x} " ]]; then
You can’t perform that action at this time.
0 commit comments