CI: Push benchmark results of ad-hoc benchmarks to dedicated JSON #139
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Apache-2.0 | ||
name: bench-ec2-any | ||
permissions: | ||
contents: read | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: Alternative name of instance | ||
default: Graviton2 | ||
ref: | ||
description: reference to commit to benchmark | ||
default: '' | ||
ec2_instance_type: | ||
description: Type if EC2 instance to benchmark on | ||
default: t4g.small | ||
ec2_ami_id: | ||
description: AMI ID (x86_64 default: ami-0e86e20dae9224db8 | aarch64 default: ami-096ea6a12ea24a797) | ||
required: true | ||
default: ami-096ea6a12ea24a797 | ||
cflags: | ||
description: Custom CFLAGS for compilation | ||
default: | ||
opt: | ||
description: Run with optimized code if enabled | ||
type: boolean | ||
default: true | ||
bench_extra_args: | ||
description: Additional command line to be appended to `tests bench` script | ||
default: '' | ||
compiler: | ||
description: Compiler to use. When unset, default nix shell is used. | ||
default: '' | ||
additional_packages: | ||
description: Additional packages to install when custom compiler is used. | ||
default: '' | ||
store_results: | ||
description: Push benchmarking result to GH pages | ||
type: boolean | ||
default: false | ||
jobs: | ||
bench-ec2-any: | ||
name: Ad-hoc benchmark on $${{ inputs.ec2_instance_type }} | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
uses: ./.github/workflows/bench_ec2_reusable.yml | ||
with: | ||
ec2_instance_type: ${{ inputs.ec2_instance_type }} | ||
ec2_ami: "ubuntu-latest (custom AMI)" | ||
ec2_ami_id: ${{ inputs.ec2_ami_id }} | ||
cflags: ${{ inputs.cflags }} | ||
archflags: ${{ inputs.archflags }} | ||
opt: ${{ inputs.opt }} | ||
ref: ${{ inputs.ref }} | ||
name: ${{ inputs.name }} | ||
store_results: ${{ inputs.store_results }} | ||
bench_extra_args: ${{ inputs.bench_extra_args }} | ||
compiler: ${{ inputs.compiler }} | ||
additional_packages: ${{ inputs.additional_packages }} | ||
json_filename: adhoc_bench.json | ||
secrets: inherit |