Skip to content

Commit

Permalink
ci: clean up the bloat action
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed May 30, 2024
1 parent 83a1715 commit c49c55b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/bloat.tmpl

This file was deleted.

23 changes: 14 additions & 9 deletions .github/workflows/bloat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ jobs:
name: Cargo Bloat
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: taiki-e/checkout-action@v1
- uses: taiki-e/checkout-action@v1

- name: Cache
uses: Swatinem/rust-cache@v2

- name: Install cargo-bloat
uses: taiki-e/install-action@v2
- uses: Boshen/setup-rust@main
with:
tool: cargo-bloat
cache-key: warm
tools: cargo-bloat

- name: Run
run: |
Expand All @@ -40,4 +36,13 @@ jobs:
echo "${BLOAT_CRATE}"
# Render summary
envsubst < .github/workflows/bloat.tmpl > $GITHUB_STEP_SUMMARY
echo "# Bloat Summary" >> $GITHUB_STEP_SUMMARY
echo "## Largest functions" >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
echo "${BLOAT_FUNC}" >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
echo "## Largest crates" >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
echo "${BLOAT_CRATE}" >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY

0 comments on commit c49c55b

Please sign in to comment.