Repository navigation
50 lines (41 loc) · 1.58 KB
/
Copy pathci.yml
File metadata and controls
50 lines (41 loc) · 1.58 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
47
48
49
50
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
name: Validate plugin
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Validate manifests
run: |
python3 -m json.tool .codex-plugin/plugin.json >/dev/null
python3 -m json.tool .mcp.json >/dev/null
plutil -lint native/app/Info.plist
plutil -lint native/launchd/com.jaypan.codex-debug-dialog.plist
- name: Compile Python sources
run: python3 -m py_compile mcp/src/debug_dialog_mcp/*.py scripts/*.py
- name: Check shell scripts
run: zsh -n scripts/*.zsh
- name: Verify bilingual documentation assets
run: |
test -s README.md
test -s README.zh-CN.md
test -s assets/debug-dialog-en.png
test -s assets/debug-dialog-zh-CN.png
test "$(sips -g pixelWidth assets/debug-dialog-en.png | awk '/pixelWidth/ {print $2}')" -ge 1400
test "$(sips -g pixelWidth assets/debug-dialog-zh-CN.png | awk '/pixelWidth/ {print $2}')" -ge 1400
grep -q './assets/debug-dialog-en.png' README.md
grep -q './assets/debug-dialog-zh-CN.png' README.zh-CN.md
- name: Build native companion
run: swift build -c release --package-path native
- name: Verify bundled app
run: |
codesign --verify --deep --strict "companion/Codex Debug Dialog.app"
lipo "companion/Codex Debug Dialog.app/Contents/MacOS/CodexDebugDialog" -verify_arch arm64 x86_64