chore: run bencher on PR or fork #1
Workflow file for this run
This file contains 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 PR | |
on: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
jobs: | |
benchmark_fork_pr_branch: | |
name: Run Fork PR Benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run `cargo xtask bench` and save results | |
run: | | |
cargo xtask bench > benchmark_results.txt | |
- name: Upload Benchmark Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: benchmark_results.txt | |
path: ./benchmark_results.txt | |
- name: Upload GitHub Pull Request Event | |
uses: actions/upload-artifact@v4 | |
with: | |
name: event.json | |
path: ${{ github.event_path }} |