Skip to content

Commit 1c009e7

Browse files
committed
enable build.metrics on CI
1 parent 53965d3 commit 1c009e7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ci/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ fi
4545

4646
if ! isCI || isCiBranch auto || isCiBranch beta || isCiBranch try; then
4747
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
48+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"
4849
fi
4950

5051
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-sccache"

src/ci/scripts/upload-artifacts.sh

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ fi
2323
# CPU usage statistics.
2424
cp cpu-usage.csv "${upload_dir}/cpu-${CI_JOB_NAME}.csv"
2525

26+
# Build metrics generated by x.py.
27+
cp "${dist_dir}/../metrics.json" "${upload_dir}/metrics-${CI_JOB_NAME}.json"
28+
2629
# Toolstate data.
2730
if [[ -n "${DEPLOY_TOOLSTATES_JSON+x}" ]]; then
2831
cp /tmp/toolstate/toolstates.json "${upload_dir}/${DEPLOY_TOOLSTATES_JSON}"

0 commit comments

Comments
 (0)