Files
Dunqing 577405266e chore(deps): update oxc-project/setup-rust to v1.0.17 (#22723)
## Summary

- Bumps `oxc-project/setup-rust` from `v1.0.16` → [`v1.0.17`](https://github.com/oxc-project/setup-rust/releases/tag/v1.0.17) across 12 workflow files.
- `v1.0.17` updates the transitive `Swatinem/rust-cache` pin to [`v2.9.1`](https://github.com/Swatinem/rust-cache/releases/tag/v2.9.1), which runs on `node24`.
- Clears the Node.js 20 deprecation warning emitted on every workflow run. Node 20 actions will be forced to `node24` on **2026-06-02** and removed on **2026-09-16**. See the [GitHub Actions changelog](https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/).

The two direct `Swatinem/rust-cache@c1937114 # v2.9.1` pins in `ci.yml` and `miri-windows.yml` were already on `node24` and don't need changing.
2026-05-25 14:38:27 +00:00

47 lines
1.5 KiB
YAML

# Run `cargo bloat` for finding out what takes most of the space in your executable.
name: Cargo Bloat
permissions: {}
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
bloat:
name: Cargo Bloat
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
- uses: oxc-project/setup-rust@3d6fb132fbe7cdcb66bf8ec193911c2945369d12 # v1.0.17
with:
cache-key: warm
tools: cargo-bloat
- name: Run
env:
RUSTFLAGS: "-C debuginfo=2 -C strip=none"
shell: bash
run: |
echo "# Bloat Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Largest functions" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
cargo bloat --release -p oxlint --features allocator -n 15 >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "## Largest crates" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
cargo bloat --release -p oxlint --features allocator --crates -n 15 >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY