Skip to content

Commit

Permalink
Merge pull request #23 from epompeii/just_main
Browse files Browse the repository at this point in the history
Only benchmark main
  • Loading branch information
epompeii authored Dec 6, 2023
2 parents 35039fb + cfcad4b commit 70812ce
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Benchmark
on:
push:
branches: main
pull_request_target:

env:
CARGO_TERM_COLOR: always
Expand All @@ -25,25 +24,3 @@ jobs:
--branch main \
--token "${{ secrets.BENCHER_API_TOKEN }}" \
"cargo bench"
benchmark_pr_with_bencher:
if: github.event_name == 'pull_request_target'
name: Track PR benchmarks with Bencher
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
persist-credentials: false
- uses: bencherdev/bencher@main
- name: Benchmark trace4rs PR with Bencher
run: |
bencher run \
--if-branch '${{ github.event.pull_request.head.ref }}' \
--else-if-branch '${{ github.event.pull_request.base.ref }}' \
--else-if-branch main \
--err \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
"cargo bench"

0 comments on commit 70812ce

Please sign in to comment.