-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (77 loc) · 2.41 KB
/
Copy pathbench.yaml
File metadata and controls
83 lines (77 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Bench
on:
workflow_dispatch:
inputs:
targets:
description: "PRIMITIVES/SELECTORS (Empty or all = all public primitive benches; aead_diag = diagnostic AEAD rows)"
required: false
type: string
default: "all"
platforms:
description: "RUNNERS (Empty = All). Options: zen4, spr, icl, zen5, g3, g4, s390x, power10."
required: false
type: string
default: "all"
filter:
description: "FILTERS (Optional)"
required: false
type: string
quick:
description: "QUICK (Optional)"
required: false
type: boolean
default: true
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
RSCRYPTO_BENCH_MODE: ci
CARGO_INCREMENTAL: 0
permissions:
contents: read
jobs:
plan:
runs-on: ubuntu-latest
outputs:
has_targets: ${{ steps.plan.outputs.has_targets }}
matrix: ${{ steps.plan.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
persist-credentials: false
- name: Build Lane Matrix
id: plan
shell: bash
env:
GH_RUN_ID: ${{ github.run_id }}
BENCH_PLATFORMS: ${{ inputs.platforms }}
run: scripts/ci/emit-manual-matrix.sh bench
bench:
name: Benchmark (${{ matrix.display_name }})
needs: plan
if: ${{ needs.plan.outputs.has_targets == 'true' }}
concurrency:
# Multiple bench runs can overlap across lanes; serialize per lane.
group: bench-${{ github.ref }}-${{ matrix.platform }}
cancel-in-progress: false
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.plan.outputs.matrix) }}
uses: ./.github/workflows/_rust-job.yaml
with:
runner: ${{ matrix.runner }}
timeout_minutes: ${{ matrix.timeout_minutes }}
cache_key: bench-${{ matrix.artifact_suffix }}
tools_mode: ${{ matrix.tools_mode }}
toolchain_components: ${{ matrix.toolchain_components }}
enable_magic_cache: false
enable_rust_cache: true
operation: benchmark
platform: ${{ matrix.platform }}
bench_targets: ${{ inputs.targets || 'all' }}
bench_filter: ${{ inputs.filter }}
bench_quick: ${{ inputs.quick }}
artifact_name: benchmark-${{ matrix.artifact_suffix }}
artifact_path: benchmark-results/