Skip to content

Commit d7b933c

Browse files
committed
ci: add test-unit + bench (smoke) jobs
- test-unit: runs 'zig build test-unit' so host-side Zig unit tests are exercised in CI (matches feat/string-builtins and feat/composite-ref-iteration). - bench: runs 'zig build bench' (Node-driven, ~22000 evaluations total over 2 fixtures) and prints the latency table to the run log. Not gated; the goal is visibility, not perf-regression enforcement (CI runners have variable noise floors).
1 parent c1c3358 commit d7b933c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,24 @@ jobs:
5454
- name: zig build test-unit
5555
run: zig build test-unit
5656

57+
bench:
58+
name: bench (smoke)
59+
runs-on: ubuntu-latest
60+
needs: build
61+
steps:
62+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
63+
64+
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
65+
with:
66+
version: 0.16.0
67+
68+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
69+
with:
70+
node-version: 22
71+
72+
- name: zig build bench
73+
run: zig build bench
74+
5775
test-node:
5876
name: test (node)
5977
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)