File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments