WIP: Add cargo bloat action #3
Workflow file for this run
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
name: Bloat | |
on: | |
pull_request: | |
permissions: | |
pull-requests: write | |
jobs: | |
cargo_bloat_esp32: | |
name: Cargo Bloat trouble esp32 example | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install cargo-bloat | |
run: cargo install cargo-bloat | |
- name: Run cargo bloat | |
run: | | |
cd examples/esp32 &&\ | |
cargo bloat --release --crates | |
- name: Post results to PR | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
hide_and_recreate: true | |
header: ESP32 Bloat Report | |
message: | | |
\`\`\` | |
$(cargo bloat --release --crates) | |
\`\`\` | |