Skip to content

pinned ubuntu 24.04 #18

pinned ubuntu 24.04

pinned ubuntu 24.04 #18

Workflow file for this run

name: CI Benchmarks
on: push
# push:
# branches:
# - master
env:
CARGO_TERM_COLOR: always
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
jobs:
benchmark:
name: Performance benchmarks
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/cache@v4 # From: https://github.com/actions/cache/blob/main/examples.md#rust---cargo
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run benchmark
run: |
cd examples
./run_benchmarks.sh
cd ..
- name: Publish benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Benchmarks
tool: 'customSmallerIsBetter'
output-file-path: examples/benchmark_results.json
# Access token to deploy GitHub Pages branch
github-token: ${{ secrets.GITHUB_TOKEN }}
# Push and deploy GitHub pages branch automatically
auto-push: true