File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow checks that we can handle the self-profile output of the nightly compiler
2+ # from the measureme's stable branch.
3+ name : Check stable branch with nightly compiler
4+
5+ on :
6+ schedule :
7+ # Run at 6:30 every day
8+ - cron : ' 30 6 * * *'
9+
10+ jobs :
11+ check-stable :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ ref : stable
17+ - uses : actions-rs/toolchain@v1
18+ with :
19+ toolchain : nightly
20+ - name : Build
21+ run : cargo build --all
22+ - name : Generate self-profile
23+ run : RUSTFLAGS="-Zself-profile" cargo +nightly build --bin crox
24+ - name : Check crox
25+ run : |
26+ ./target/debug/crox crox-*.mm_profdata
27+ # Check that the file was generated and is non-empty
28+ test -s chrome_profiler.json
29+ - name : Check flamegraph
30+ run : |
31+ ./target/debug/flamegraph crox-*.mm_profdata
32+ test -s rustc.svg
33+ - name : Check stack_collapse
34+ run : |
35+ ./target/debug/stack_collapse crox-*.mm_profdata
36+ test -s out.stacks_folded
37+ - name : Check summarize
38+ run : |
39+ ./target/debug/summarize summarize crox-*.mm_profdata > summary.txt
40+ test -s summary.txt
You can’t perform that action at this time.
0 commit comments