lazycsv: Handle inputs without LF at EOF, fix a minor logic issue #61
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Benchmarks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'crates/lazycsv/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'crates/lazycsv/**' | |
| # Allow only one set of CI to run at a time per PR | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| deployments: write | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| benchmark: | |
| name: Benchmark | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Homebrew/actions/setup-homebrew@1bad5a8c1bb08ac392c63b4587f3231cf80bb1a4 # 2025-04-02 | |
| - uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3 # stable | |
| - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 | |
| - run: brew install simnalamburt/x/cargo-criterion | |
| - run: cargo criterion --output-format bencher 2>&1 | tee output.txt | |
| - uses: benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4 | |
| with: | |
| name: Rust Benchmark | |
| tool: "cargo" | |
| output-file-path: output.txt | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: ${{ github.ref_name == 'main' }} | |
| alert-threshold: "120%" | |
| comment-always: true | |
| fail-on-alert: true |