Skip to content

Commit 6bfca42

Browse files
author
cuiko
committed
ci: Add macOS build workflow
Run \`make build\` on every push to main and every pull request so broken Swift sources or a regressed Makefile fail fast instead of being discovered at release time. Forward-compatible with the upcoming SPM refactor: both the current \`swiftc\`-based Makefile and the SPM-wrapped \`Scripts/package-app.sh\` produce \`build/TermIMS.app\`, which the post- build verification step asserts is signed and has a valid Info.plist.
1 parent 8616cba commit 6bfca42

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: macos-14
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Show toolchain
14+
run: swift --version
15+
- name: Build .app bundle
16+
run: make build
17+
- name: Verify bundle
18+
run: |
19+
test -x build/TermIMS.app/Contents/MacOS/TermIMS
20+
test -f build/TermIMS.app/Contents/Info.plist
21+
plutil -lint build/TermIMS.app/Contents/Info.plist
22+
codesign --verify --verbose=2 build/TermIMS.app

0 commit comments

Comments
 (0)