-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.09 KB
/
ci.yml
File metadata and controls
46 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Show Swift version
run: swift --version
- name: Set up Node (for runtime JS smoke harness)
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dev deps (jsdom for runtime smoke)
run: npm install --no-audit --no-fund --silent
- name: Build
run: make build
- name: Verify binary size under 300KB
run: |
SIZE=$(stat -f%z webview-cli)
echo "Binary size: $SIZE bytes"
if [ "$SIZE" -gt 307200 ]; then
echo "Binary exceeds 300KB budget (v0.2.0 baseline; markdown editor adds ~100KB over the v0.1.x 193KB base)"
exit 1
fi
- name: Smoke tests
run: make test
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: webview-cli-darwin-arm64
path: webview-cli
retention-days: 30