mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 13:18:59 +00:00
ci: add cargo-unused
This commit is contained in:
parent
2f9e3832a0
commit
5faae992b2
2 changed files with 28 additions and 3 deletions
5
.github/workflows/bloat.yaml
vendored
5
.github/workflows/bloat.yaml
vendored
|
|
@ -1,6 +1,6 @@
|
|||
# Run `cargo bloat` for finding out what takes most of the space in your executable.
|
||||
|
||||
name: Bloat
|
||||
name: Cargo Bloat
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
|
@ -10,7 +10,7 @@ env:
|
|||
|
||||
jobs:
|
||||
bloat:
|
||||
name: Bloat
|
||||
name: Cargo Bloat
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -23,7 +23,6 @@ jobs:
|
|||
run: cargo install cargo-bloat --no-default-features
|
||||
|
||||
- name: Run
|
||||
id: size
|
||||
run: |
|
||||
# Get largest functions
|
||||
export BLOAT_FUNC=$(cargo bloat --profile release-debug --bin oxc_cli -n 10)
|
||||
|
|
|
|||
26
.github/workflows/cargo-unused.yaml
vendored
Normal file
26
.github/workflows/cargo-unused.yaml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Run `cargo-unused-features` for finding out unused features
|
||||
|
||||
name: Cargo Unused Features
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
CARGO_TERM_QUIET: true
|
||||
|
||||
jobs:
|
||||
bloat:
|
||||
name: Cargo Unused Features
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Install cargo-unused-features
|
||||
run: cargo install cargo-unused-features
|
||||
|
||||
- name: Run
|
||||
run: unused-features analyze
|
||||
Loading…
Reference in a new issue