We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2e06f commit a16c573Copy full SHA for a16c573
.github/workflows/check-binary-size.yml
@@ -69,13 +69,14 @@ jobs:
69
const diff_str = `${plus}${diff}B`;
70
71
if (diff !== 0) {
72
+ const percent = (((updated / reference) - 1) * 100).toFixed(2);
73
// The body is created here and wrapped so "weirdly" to avoid whitespace at the start of the lines,
74
// which is interpreted as a code block by Markdown.
75
const body = `Below is the size of a hello-world Rust program linked with libstd with backtrace.
76
77
Original binary size: **${reference}B**
78
Updated binary size: **${updated}B**
- Difference: **${diff_str}**`;
79
+ Difference: **${diff_str}** (${percent}%)`;
80
81
github.rest.issues.createComment({
82
issue_number: context.issue.number,
0 commit comments