From d38e373ce0cd10a28c56826a43bbc1660f4972eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mali=C5=A1a=20Vu=C4=8Dini=C4=87?= Date: Sat, 2 Nov 2024 17:53:19 +0000 Subject: [PATCH 1/2] ci: Add a first draft of the CI cargo bloat tool --- .github/workflows/bloat.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..f964d057 --- /dev/null +++ b/.github/workflows/bloat.yml @@ -0,0 +1,20 @@ +name: Bloat size + +on: + push: + branches: [main] + tags: 'v*' + pull_request: + workflow_dispatch: + +jobs: + compute-size: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Run cargo bloat + uses: orf/cargo-bloat-action@v1 + with: + bloat_args: --bin coapclient + token: ${{ secrets.GITHUB_TOKEN }} From a49f271e945ec79b6712289a627aed407607378b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mali=C5=A1a=20Vu=C4=8Dini=C4=87?= Date: Sat, 2 Nov 2024 19:20:05 +0000 Subject: [PATCH 2/2] ci: Rename coap example crate to avoid conflict in CI --- examples/coap/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/coap/Cargo.toml b/examples/coap/Cargo.toml index 8c34ba80..19b22156 100644 --- a/examples/coap/Cargo.toml +++ b/examples/coap/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "coap" +name = "lakers-coap" version = "0.1.0" edition = "2021" @@ -29,4 +29,4 @@ defmt = { version = "0.3", optional = true } [features] default = ["log"] defmt = ["dep:defmt"] -log = ["dep:log"] \ No newline at end of file +log = ["dep:log"]