From aa30c6f53edbfefd06d51249a75432b1d7abba3c Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Mon, 8 Apr 2024 11:48:46 +0200 Subject: [PATCH] Add binary size step --- .github/workflows/ci.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cf94a2f..e420f25 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,7 +36,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - name: Install cargo fuzz - uses: taiki-e/install-action@70233fe3d27d863712ee34eede2087e36bde6b5e + uses: taiki-e/install-action@v2 with: tool: cargo-fuzz @@ -46,4 +46,18 @@ jobs: for target in $(cargo fuzz list) ; do cargo fuzz run --sanitizer none $target -- -max_total_time=10 done - \ No newline at end of file + + binary-size: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - run: rustup target add thumbv7em-none-eabihf + - run: rustup component add llvm-tools + - name: Install cargo binutils + uses: taiki-e/cache-cargo-install-action@v1 + with: + tool: cargo-binutils + - name: Calculate binary size + working-directory: ./example + run: cargo size --release -- -A