rustdesk/.github/workflows/_bench.yml
Clémence Lesné cfb41c1358 fix: address CodeRabbit review findings
- Add checkout step before local composite action (GitHub Actions
  requires repo on disk to read action.yml)
- Use PR base SHA for path detection in multi-commit PRs
- Fail benchmarks loudly on decode errors (.expect instead of let _ =)
- Document intentional encode error handling (codec may drop frames)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 18:58:00 +02:00

34 lines
702 B
YAML

name: Benchmarks
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
id-token: write # CodSpeed OIDC authentication
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
jobs:
benchmarks:
name: Performance benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/setup-linux
- name: Install cargo-codspeed
run: cargo install cargo-codspeed
- name: Build benchmarks
run: cargo codspeed build --package scrap
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
run: cargo codspeed run --package scrap