chore(deps): update rust crate syn to v3 #37
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: Benchmarks | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| push: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| criterion: | |
| name: Criterion Benchmarks | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Run benchmarks | |
| env: | |
| RUSTFLAGS: -C target-cpu=native | |
| run: | | |
| cargo bench -p benches --bench v_jsonescape -- --output-format bencher | tee output.txt | |
| - name: Compare benchmark results and comment | |
| # Fork PRs have a read-only token, so skip alert/comment publishing there. | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| tool: cargo | |
| output-file-path: output.txt | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| summary-always: true | |
| comment-on-alert: true | |
| alert-threshold: "120%" | |
| comment-always: true | |
| fail-on-alert: false | |
| auto-push: true | |
| - name: Upload Criterion reports | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: criterion-report | |
| path: | | |
| benches/target/criterion | |
| benches/output.txt | |
| if-no-files-found: warn |