Skip to content

Commit

Permalink
Add binary size step
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Apr 8, 2024
1 parent 81bfcad commit aa30c6f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -46,4 +46,18 @@ jobs:
for target in $(cargo fuzz list) ; do
cargo fuzz run --sanitizer none $target -- -max_total_time=10
done
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

0 comments on commit aa30c6f

Please sign in to comment.