diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 71a63be7de1..d316bafd3ea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,7 @@ jobs: - lint-docs - lockfile - resolver + - report-timings - rustfmt - schema - spellcheck @@ -327,3 +328,20 @@ jobs: uses: actions/checkout@v5 - name: Spell Check Repo uses: crate-ci/typos@v1.40.0 + + report-timings: + name: Timing HTML report + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - run: rustup update nightly && rustup default nightly + - run: cargo build + - name: Generate timing report for rustfix + run: | + cargo run -- build -p rustfix -Zbuild-analysis -Zsection-timings --config build.analysis.enabled=true --config 'build.build-dir="tmp"' + cargo run -- report timings -Zbuild-analysis + - uses: actions/upload-artifact@v6 + with: + name: timing-report + path: target/cargo-timings/*.html + if-no-files-found: error