Skip to content

Commit d32be10

Browse files
timboettigerclaude
andcommitted
ci: baseline fit report on clean master (throwaway, for spike comparison)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8f5ed44 commit d32be10

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

‎.github/workflows/fit-baseline.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Throwaway: compile clean master and publish the same Quartus reports as the
2+
# spike, to get an apples-to-apples baseline (ALMs, BRAM, timing slack) for
3+
# comparison. Delete this branch after reading the numbers.
4+
name: Fit Baseline
5+
6+
on:
7+
push:
8+
branches:
9+
- "ci/fit-baseline"
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
fit:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Compile bitstream (Quartus)
23+
run: |
24+
docker run --rm -v "${{ github.workspace }}:/build" -w /build \
25+
raetro/quartus:21.1 \
26+
quartus_sh --flow compile projects/snes_pocket.qpf
27+
sudo chown -R "$USER" projects/output_files
28+
29+
- name: Resource + timing summary
30+
if: always()
31+
run: |
32+
cd projects/output_files || exit 0
33+
echo "================= FITTER SUMMARY ================="
34+
cat *.fit.summary 2>/dev/null || echo "(no fit.summary)"
35+
echo ""
36+
echo "================= TIMING (slack) ================="
37+
grep -A2 -iE "Slack|Timing Requirement|Worst-case" *.sta.rpt 2>/dev/null | head -80 \
38+
|| echo "(no sta.rpt)"
39+
40+
- name: Upload Quartus reports
41+
if: always()
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: quartus-baseline-reports
45+
path: |
46+
projects/output_files/*.summary
47+
projects/output_files/*.rpt

0 commit comments

Comments
 (0)