Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/pr_benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
on:
pull_request:
types: [opened, reopened, edited, synchronize]
workflow_dispatch:
inputs:
reason:
description: 'Reason for running benchmarks'
required: false
default: 'Manual trigger'

jobs:
benchmark_pr_branch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Continuous Benchmarking PRs
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
# Skip for feature branches, only run for release branches or manual triggers
if: >
(github.event_name == 'workflow_dispatch') ||
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository &&
!startsWith(github.head_ref, 'feature/'))
permissions:
pull-requests: write
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- uses: katyo/publish-crates@v2

- name: Publish to crates.io
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Loading