oxc/.github/workflows/cargo_llvm_lines.yml

30 lines
812 B
YAML

# Run `cargo-llvm-lines` for finding out bloat generic functions
name: Cargo LLVM Lines
permissions: {}
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
bloat:
name: Cargo LLVM Lines
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
- name: Install cargo-llvm-lines
uses: taiki-e/install-action@a7adeb15af2926b0ac7478ad165047cd2d8ba350 # v2.47.18
with:
tool: cargo-llvm-lines
- name: Run
run: cargo llvm-lines -p oxc_parser | head -20 > $GITHUB_STEP_SUMMARY