Skip to content

Commit 3ae7dde

Browse files
authored
ci: limit macOS packaging checks to Darwin binaries (#173)
1 parent bb2caf5 commit 3ae7dde

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
run: npm install -g npm@^12.0.2
8282

8383
- name: Check formatting
84+
if: runner.os == 'Linux'
8485
run: |
8586
unformatted="$(git ls-files '*.go' | xargs gofmt -l)"
8687
if [ -n "$unformatted" ]; then
@@ -92,7 +93,8 @@ jobs:
9293
- name: Test
9394
run: go test ./...
9495

95-
- name: Build CLI
96+
- name: Build CLI for Docker mount tests
97+
if: runner.os == 'Linux'
9698
run: go build ./cmd/clawscan
9799

98100
- name: Test Docker mount paths and permissions
@@ -106,24 +108,29 @@ jobs:
106108
node --test npm/clawscan/test/*.test.mjs
107109
node --test scripts/build-npm-package.test.mjs
108110
node --test scripts/release-notes.test.mjs
109-
node scripts/build-npm-package.mjs --version v0.0.0 --pack --smoke
111+
112+
- name: Smoke the full npm package
113+
if: runner.os == 'Linux'
114+
run: node scripts/build-npm-package.mjs --version v0.0.0 --pack --smoke
110115

111116
- name: Verify macOS minimum and both architectures
112117
if: runner.os == 'macOS'
113118
run: |
119+
node scripts/build-npm-package.mjs --version v0.0.0 --platform darwin-arm64 --out dist/npm-arm64 --pack --smoke
120+
node scripts/build-npm-package.mjs --version v0.0.0 --platform darwin-x64 --out dist/npm-x64
114121
if ! arch -x86_64 /usr/bin/true; then
115122
softwareupdate --install-rosetta --agree-to-license
116123
fi
117124
arch -x86_64 /usr/bin/true
118125
for npm_arch in arm64 x64; do
119-
binary="dist/npm/package/binaries/darwin-${npm_arch}/clawscan"
126+
binary="dist/npm-${npm_arch}/package/binaries/darwin-${npm_arch}/clawscan"
120127
minos=$(xcrun vtool -show-build "$binary" | awk '$1 == "minos" { print $2 }')
121128
test "$minos" = 13.0
122129
done
123-
dist/npm/package/binaries/darwin-arm64/clawscan --version
124-
dist/npm/package/binaries/darwin-arm64/clawscan --help
125-
arch -x86_64 dist/npm/package/binaries/darwin-x64/clawscan --version
126-
arch -x86_64 dist/npm/package/binaries/darwin-x64/clawscan --help
130+
dist/npm-arm64/package/binaries/darwin-arm64/clawscan --version
131+
dist/npm-arm64/package/binaries/darwin-arm64/clawscan --help
132+
arch -x86_64 dist/npm-x64/package/binaries/darwin-x64/clawscan --version
133+
arch -x86_64 dist/npm-x64/package/binaries/darwin-x64/clawscan --help
127134
128135
- name: Test runtime update branch push
129136
run: node --test scripts/push-runtime-tool-update-branch.test.mjs

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Update the Go text-processing dependency to `golang.org/x/text` v0.44.0.
66
- **Breaking:** the `clawhub` and `clawhub-aig` profiles judge skills and plugins with an evidence-only Codex run (`gpt-6.1-sol`) that sees scanner results only. The new profile setting `judge.evidenceOnly` / `overview.evidenceOnly` removes the artifact copy from the command's workspace and refuses `{{ target.files }}`; the profile disables Codex's file, shell, image, web-search and code-execution tools (verified against codex-cli 0.164.0; its sub-agent tools stay offered but inherit the same restrictions). New prompt placeholders `{{ scanner_results }}` and `{{ run_context }}`. `judge.result` keeps the typed fields but no longer carries the Decisions `decision` record. The Decisions API judge remains available through `--judge`.
77
- Give scanner commands run against OpenClaw plugin targets a 30-minute budget (was 20 minutes); skill, file and URL targets keep 20 minutes. The judge and overview budgets are unchanged.
8+
- CI builds the full npm bundle on Linux and checks both Darwin architectures on macOS, avoiding four repeated cross-platform builds per run.
89
- Refresh Node setup to 7.1.0, use Node 24.22.2 for CI and docs, and Node 26.13.0 for release packaging.
910

1011
- **Breaking for plugin targets:** add the plugin-only `aig-mcp` scanner (Tencent A.I.G `aig-mcp-scan` 0.2.0, patched in the runtime image to allow only confined read-only tools, refuse model-chosen MCP destinations and fail unusable reports) and the profile field `pluginScanners`. The `clawhub` profile now runs only `aig-mcp` for OpenClaw plugins, over a bounded copy without `node_modules`; skills keep `skillspector` and `aig`. Consumers that read `scanners.skillspector` or `scanners.aig` for plugin runs must read `scanners["aig-mcp"]` instead. Host runs need `AIG_MCP_SCAN_ALLOW_HOST_EXEC=1` ([#149](https://github.com/openclaw/clawscan/pull/149)).

0 commit comments

Comments
 (0)