diff --git a/.github/workflows/bloat.yaml b/.github/workflows/bloat.yaml index ac475fc4f..03ac8f6c1 100644 --- a/.github/workflows/bloat.yaml +++ b/.github/workflows/bloat.yaml @@ -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) diff --git a/.github/workflows/cargo-unused.yaml b/.github/workflows/cargo-unused.yaml new file mode 100644 index 000000000..ecae1218d --- /dev/null +++ b/.github/workflows/cargo-unused.yaml @@ -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