fix(ci): skip smoke tests for cross-compiled binaries

macos-latest = ARM64, ubuntu-latest = x64. Only darwin-arm64 and
linux-x64 binaries can execute on their build host; the others are
cross-compiled and will Exec format error.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-15 02:51:25 +01:00
parent 5716a6ce22
commit 29f546abcf

View File

@@ -57,8 +57,11 @@ jobs:
src/entrypoints/cli.ts \
--outfile dist/bin/claudemesh-${{ matrix.target }}${{ matrix.ext }}
- name: Smoke test (non-Windows)
if: matrix.target != 'windows-x64'
# Smoke test only on native arch. macos-latest runners are ARM64 (Apple
# Silicon); ubuntu-latest is x64. Cross-compiled binaries can't execute
# on the build host, so skip them.
- name: Smoke test (native only)
if: matrix.target == 'darwin-arm64' || matrix.target == 'linux-x64'
working-directory: apps/cli-v2
run: |
./dist/bin/claudemesh-${{ matrix.target }} --version