diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-03-14 22:18:04 +0100 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-03-15 09:24:42 +0100 |
| commit | 899eed15adfbcda55e0eb300c037fe8d444f188d (patch) | |
| tree | 4dfda0d795b378d03c2d2e85188eca1c2d0ce4d8 /.github | |
| parent | 282865097d138c7f0f7a7566db5b761312dd145c (diff) | |
| download | rust-899eed15adfbcda55e0eb300c037fe8d444f188d.tar.gz rust-899eed15adfbcda55e0eb300c037fe8d444f188d.zip | |
Refactor metrics generation step
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96c0955e871..47ee02ab00e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -241,13 +241,17 @@ jobs: - name: postprocess metrics into the summary run: | if [ -f build/metrics.json ]; then - ./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY} + METRICS=build/metrics.json elif [ -f obj/build/metrics.json ]; then - ./build/citool/debug/citool postprocess-metrics obj/build/metrics.json ${GITHUB_STEP_SUMMARY} + METRICS=obj/build/metrics.json else echo "No metrics.json found" + exit 0 fi + ./build/citool/debug/citool postprocess-metrics \ + ${METRICS} ${GITHUB_STEP_SUMMARY} + - name: upload job metrics to DataDog if: needs.calculate_matrix.outputs.run_type != 'pr' env: |
