-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (60 loc) · 1.91 KB
/
bench_ec2_any.yml
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
# SPDX-License-Identifier: Apache-2.0
name: bench-ec2-any
on:
workflow_dispatch:
inputs:
name:
description: Alternative name of instance
default: Graviton2
ec2_instance_type:
description: Type if EC2 instance to benchmark on
default: t4g.small
ec2_ami:
description: AMI ID
type: choice
options:
- ubuntu-latest (x86_64)
- ubuntu-latest (aarch64)
- ubuntu-latest (custom AMI)
default: ubuntu-latest (aarch64)
ec2_ami_id:
description: AMI ID
required: false
default: ami-096ea6a12ea24a797
cflags:
description: Custom CFLAGS for compilation
default:
archflags:
description: Custom ARCH flags for compilation
default: -mcpu=cortex-a76 -march=armv8.2-a
opt:
description: Run with optimized code if enabled
type: boolean
default: true
always_terminate:
description: Indicates if EC2 instance should always be terminated
type: boolean
default: true
bench_extra_args:
description: Additional command line to be appended to `tests bench` script
default: ''
cross_prefix:
description: "Binary prefix for cross-compilation builds"
default: ''
jobs:
bench-ec2-any:
name: Ad-hoc benchmark on $${{ inputs.ec2_instance_type }}
uses: ./.github/workflows/bench_ec2_reusable.yml
with:
ec2_instance_type: ${{ inputs.ec2_instance_type }}
ec2_ami: ${{ inputs.ec2_ami }}
ec2_ami_id: ${{ inputs.ec2_ami_id }}
cflags: ${{ inputs.cflags }}
archflags: ${{ inputs.archflags }}
opt: ${{ inputs.opt }}
name: ${{ inputs.name }}
store_results: false
always_terminate: ${{ inputs.always_terminate }}
bench_extra_args: ${{ inputs.bench_extra_args }}
cross_prefix: ${{ inputs.cross_prefix }}
secrets: inherit