oxc/.github/workflows/cargo-unused.yml
2023-03-30 10:20:36 +08:00

32 lines
669 B
YAML

# Run `cargo-unused-features` for finding out unused features
name: Cargo Unused Features
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_QUIET: true
jobs:
bloat:
name: Cargo Unused Features
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
run: rustup show
- name: Install cargo-unused-features
uses: taiki-e/install-action@v2
with:
tool: cargo-unused-features
- name: Run
run: unused-features analyze