Skip to content

Commit 5d3f471

Browse files
committed
improve benchmark ci
1 parent 8d5c5a7 commit 5d3f471

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/benchmark-pr.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
pull_request:
66
branches: [ master ]
77

8-
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
11-
128
env:
139
BENCHMARK_DISABLE_JEMALLOC: true
1410

@@ -134,17 +130,16 @@ jobs:
134130
135131
# Check if master baseline exists for comparison
136132
if [ -f ".benchmarkBaselines/BenchmarkTestVectors/master/results.json" ]; then
137-
echo "## 🔄 Comparison with Master Branch"
138-
echo ""
139-
swift package benchmark baseline check master pull_request --format markdown
133+
echo '## Summary' >> $GITHUB_STEP_SUMMARY
134+
echo $(date) >> $GITHUB_STEP_SUMMARY
135+
echo "exitStatus=1" >> $GITHUB_ENV
136+
swift package benchmark baseline check master pull_request --format markdown >> $GITHUB_STEP_SUMMARY
137+
echo '---' >> $GITHUB_STEP_SUMMARY
138+
swift package benchmark baseline compare master pull_request --no-progress --quiet --format markdown >> $GITHUB_STEP_SUMMARY
140139
echo "exitStatus=0" >> $GITHUB_ENV
141140
else
142-
echo "## 🆕 First Benchmark Run"
143-
echo ""
144141
echo "⚠️ Master baseline not found. This appears to be the first benchmark run."
145-
echo "The following results will become the baseline for future comparisons:"
146142
echo ""
147-
148143
# Run benchmarks to generate results for first time
149144
echo "### Benchmark Results:"
150145
swift package benchmark --format markdown 2>&1 || true

0 commit comments

Comments
 (0)