mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
rustup show always install the profiles set in rust-toolchain.toml, I added an action to remove this line so we can install components selectively. This should reduce Rust installation time, which can be significant on Windows.
32 lines
712 B
YAML
32 lines
712 B
YAML
# Run `cargo-llvm-lines` for finding out bloat generic functions
|
|
|
|
name: Cargo LLVM Lines
|
|
|
|
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 LLVM Lines
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Rust Toolchain
|
|
uses: ./.github/actions/rustup
|
|
|
|
- name: Install cargo-llvm-lines
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-llvm-lines
|
|
|
|
- name: Run
|
|
run: cargo llvm-lines -p oxc_parser | head -20 > $GITHUB_STEP_SUMMARY
|