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 }} 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"]