name: rust-file-size-lint

on:
  pull_request:
  push:
    branches: [ main ]

jobs:
  check-rust-file-sizes:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Run rust file-size guardrail
        run: bash scripts/check_rust_file_sizes.sh
