mirror of
https://github.com/rustdesk/rustdesk
synced 2026-04-21 13:27:19 +00:00
- 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>
34 lines
702 B
YAML
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
|