From dcd7f5f3e2df484a5b1823b16defce1f3e438db8 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Sat, 9 Dec 2023 15:54:55 +0100 Subject: [PATCH] Enable GitHub reporter in benchmarks --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23cf157..c1c5ca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,5 +87,14 @@ jobs: - name: build run: dotnet build --no-restore -c Release tests/VbaCompiler.Benchmark/VbaCompiler.Benchmark.csproj - - name: run - run: dotnet run -c Release --project tests/VbaCompiler.Benchmark/VbaCompiler.Benchmark.csproj + - name: benchmark + run: | + dotnet run -e github -c Release --artifacts --project tests/VbaCompiler.Benchmark/VbaCompiler.Benchmark.csproj + + { + echo "## VBA Compiler Benchmark" + echo "" + echo "Runner: \`${{ matrix.os }}\`" + echo "" + cat "BenchmarkDotNet.Artifacts/results/CompileMacroBenchmark-report-github.md" + } >> $GITHUB_STEP_SUMMARY