Check stable branch with nightly compiler #248
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow checks that we can handle the self-profile output of the nightly compiler | |
# from the measureme's stable branch. | |
name: Check stable branch with nightly compiler | |
on: | |
schedule: | |
# Run at 6:30 every day | |
- cron: '30 6 * * *' | |
jobs: | |
check-stable: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: stable | |
- name: Set up Rust toolchain | |
run: rustup toolchain install --no-self-update --profile minimal nightly | |
- name: Build | |
run: cargo +nightly build --all | |
- name: Generate self-profile | |
run: RUSTFLAGS="-Zself-profile" cargo +nightly build --bin crox | |
- name: Check crox | |
run: | | |
./target/debug/crox crox-*.mm_profdata | |
# Check that the file was generated and is non-empty | |
test -s chrome_profiler.json | |
- name: Check flamegraph | |
run: | | |
./target/debug/flamegraph crox-*.mm_profdata | |
test -s rustc.svg | |
- name: Check stack_collapse | |
run: | | |
./target/debug/stack_collapse crox-*.mm_profdata | |
test -s out.stacks_folded | |
- name: Check summarize | |
run: | | |
./target/debug/summarize summarize crox-*.mm_profdata > summary.txt | |
test -s summary.txt |