Skip to content

Benchmark

Benchmark #135

Workflow file for this run

name: Benchmark
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * *"
permissions:
contents: write
deployments: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "3.3.0"
steps:
- name: Install sdl
run: sudo apt-get install libsdl2-dev -y
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run benchmark
run: bundle exec bin/benchmark | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "customSmallerIsBetter"
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
# Enable alert commit comment
comment-on-alert: true
# Mention @pusewicz in the commit comment
alert-comment-cc-users: "@pusewicz"
summary-always: true