From 6f58422535d1babf0791a0a5e1826a75a6637c15 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Tue, 12 May 2020 03:00:29 +0200 Subject: [PATCH 1/3] Try using cargo-bloat --- .github/workflows/bloat.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..07b0c771 --- /dev/null +++ b/.github/workflows/bloat.yml @@ -0,0 +1,22 @@ +on: + push: + branches: [ staging, trying, master ] + pull_request: + +name: Examples bloat check + +jobs: + cargo_bloat: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + target: thumbv7em-none-eabihf + override: true + - uses: orf/cargo-bloat-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + bloat_args: --release -n 0 --message-format=json --features=stm32f429,rt,usb_fs --example dwt-blinky From 6816f16a737721ae08e71ae73b7208ab943872b2 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Tue, 12 May 2020 03:07:09 +0200 Subject: [PATCH 2/3] Update bloat.yml --- .github/workflows/bloat.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bloat.yml b/.github/workflows/bloat.yml index 07b0c771..963b8c75 100644 --- a/.github/workflows/bloat.yml +++ b/.github/workflows/bloat.yml @@ -16,7 +16,7 @@ jobs: toolchain: stable target: thumbv7em-none-eabihf override: true - - uses: orf/cargo-bloat-action@v1 + - uses: orf/cargo-bloat-action@master with: token: ${{ secrets.GITHUB_TOKEN }} - bloat_args: --release -n 0 --message-format=json --features=stm32f429,rt,usb_fs --example dwt-blinky + bloat_args: --target=thumbv7em-none-eabihf --release -n 0 --message-format=json --features=stm32f429,rt,usb_fs --example dwt-blinky From 19e405094262f33547036a6a831a9ff1548e7aaf Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Mon, 18 May 2020 22:26:42 +0200 Subject: [PATCH 3/3] Update bloat.yml --- .github/workflows/bloat.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bloat.yml b/.github/workflows/bloat.yml index 963b8c75..d7a72ff1 100644 --- a/.github/workflows/bloat.yml +++ b/.github/workflows/bloat.yml @@ -19,4 +19,5 @@ jobs: - uses: orf/cargo-bloat-action@master with: token: ${{ secrets.GITHUB_TOKEN }} + by_function: 1 bloat_args: --target=thumbv7em-none-eabihf --release -n 0 --message-format=json --features=stm32f429,rt,usb_fs --example dwt-blinky