-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 789 Bytes
/
ci.yml
File metadata and controls
38 lines (31 loc) · 789 Bytes
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
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 250KB
run: |
SIZE=$(stat -f%z webview-cli)
echo "Binary size: $SIZE bytes"
if [ "$SIZE" -gt 262144 ]; then
echo "Binary exceeds 250KB budget"
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