Skip to content

WIP: Add cargo bloat action #3

WIP: Add cargo bloat action

WIP: Add cargo bloat action #3

Workflow file for this run

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)
\`\`\`