mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
25 lines
686 B
YAML
25 lines
686 B
YAML
name: Run and Cache Benchmarks
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, edited, synchronize]
|
|
|
|
jobs:
|
|
benchmark_fork_pr_branch:
|
|
name: Run Fork PR Benchmarks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Run Benchmarks
|
|
run: cargo 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 }}
|