diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 60a21f9..c2b8a3c 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -90,9 +90,12 @@ jobs: echo "::warning::No benchmark baseline found. Merge to main to generate one." exit 0 fi + # Import the cached baseline under the name "main" so critcmp + # can distinguish the two groups and produce a side-by-side comparison. + critcmp --import baseline.json --name main critcmp --export current > pr.json echo 'result<> $GITHUB_OUTPUT - critcmp baseline.json pr.json >> $GITHUB_OUTPUT + critcmp main current >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT - name: Find existing comment