Skip to content

ci: raise binary-size budget to 300KB for v0.2.0 markdown editor #13

ci: raise binary-size budget to 300KB for v0.2.0 markdown editor

ci: raise binary-size budget to 300KB for v0.2.0 markdown editor #13

Workflow file for this run

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: 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