From dbf260bcff75e58a42f395bfa7bfbf6a37bf7c62 Mon Sep 17 00:00:00 2001 From: lablans Date: Mon, 9 Oct 2023 12:44:31 +0000 Subject: [PATCH] Add cargo-bloat --- .github/workflows/bloat.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/bloat.yml diff --git a/.github/workflows/bloat.yml b/.github/workflows/bloat.yml new file mode 100644 index 00000000..0c24e1ab --- /dev/null +++ b/.github/workflows/bloat.yml @@ -0,0 +1,25 @@ +# taken from: https://github.com/marketplace/actions/cargo-bloat + +on: # rebuild any PRs and main branch changes + pull_request: + push: + branches: + - main + - develop + +name: cargo-bloat + +jobs: + cargo_bloat: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Run cargo bloat + uses: orf/cargo-bloat-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + bloat_args: --profile bloat