Skip to content

refactor: den-fx

refactor: den-fx #415

Workflow file for this run

name: benchmark
on:
pull_request:
types: [labeled, opened, synchronize, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
WARM: 2
RUNS: 3
NIX_PATH: "nixpkgs=https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
jobs:
allow-bench:
name: allow-bench
runs-on: ubuntu-latest
if: ${{contains(github.event.pull_request.labels.*.name, 'allow-bench')}}
steps:
- run: true
benchmark:
needs: [allow-bench]
runs-on: ubuntu-latest
steps:
- uses: wimpysworld/nothing-but-nix@v10
- uses: cachix/install-nix-action@v31
- uses: DeterminateSystems/magic-nix-cache-action@v13
- uses: actions/checkout@v6
- run: git fetch origin ${{github.base_ref}} --depth 1
- run: nix develop -c just -- bench --head HEAD --base origin/${{github.base_ref}} --warm "$WARM" --runs "$RUNS" -- --show-output 2>&1 | tee "$GITHUB_STEP_SUMMARY" /tmp/den-bench.log
- run: grep "faster than base" "/tmp/den-bench.log"
if: ${{!contains(github.event.pull_request.labels.*.name, 'bench-skip')}}