mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
32 lines
721 B
YAML
32 lines
721 B
YAML
# Run `cargo bloat` for finding out what takes most of the space in your executable.
|
|
|
|
name: Bloat
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CARGO_TERM_QUIET: true
|
|
|
|
jobs:
|
|
bloat:
|
|
name: Bloat
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Install cargo-bloat
|
|
run: cargo install cargo-bloat --no-default-features
|
|
|
|
- name: Get largest functions
|
|
run: cargo bloat --profile release-debug -n 10
|
|
|
|
- name: Get largest crates
|
|
run: cargo bloat --profile release-debug --crates
|
|
|
|
- name: Get longest compile time
|
|
run: cargo bloat --profile release-debug --time -j 1
|