Skip to content

Commit 95677a2

Browse files
committed
Add a CI workflow to check the stable branch with nightly compiler output
1 parent f9f84d1 commit 95677a2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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
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

0 commit comments

Comments
 (0)