@@ -37,20 +37,24 @@ jobs:
3737 {"os":"macos-14","goos":"darwin","goarch":"arm64"},
3838 {"os":"macos-15-intel","goos":"darwin","goarch":"amd64"}
3939 ]'
40- # Broad legs reuse existing goos/goarch artifacts on newer/older OS
41- # versions (e.g. ubuntu-22.04 = older glibc) to widen the run-anywhere
42- # signal without building new targets.
40+ # Broad legs reuse existing goos/goarch artifacts on additional OS
41+ # versions to widen the run-anywhere signal without building new targets.
4342 # Broad legs are REQUIRED gates (no optional / continue-on-error):
4443 # every smoke leg must pass. No `optional` flags anywhere.
44+ #
45+ # NOTE: the *dynamic* linux binary links glibc 2.38+ and cannot run on
46+ # older distros by design — older-glibc coverage is the -portable (static)
47+ # binary's job, exercised green by the smoke-linux-portable broad legs
48+ # (ubuntu-22.04 / 22.04-arm). So the dynamic broad legs stay on
49+ # forward-compatible OSes only (macOS); running the dynamic binary on
50+ # ubuntu-22.04 would fail Phase 1 (glibc too old), not a real regression.
4551 BROAD_UNIX='[
46- {"os":"ubuntu-22.04","goos":"linux","goarch":"amd64"},
47- {"os":"ubuntu-22.04-arm","goos":"linux","goarch":"arm64"},
4852 {"os":"macos-15","goos":"darwin","goarch":"arm64"}
4953 ]'
50- CORE_WIN='[{"os":"windows-latest"}]'
51- # windows-11-arm runs the shipped x86_64 binary under emulation —
52- # verifies the Windows artifact still launches on ARM hardware .
53- BROAD_WIN='[{"os":"windows-2025"},{"os":"windows-11-arm"}]'
54+ CORE_WIN='[{"os":"windows-latest","arch":"amd64" }]'
55+ # windows-11-arm now runs the NATIVE arm64 binary (build-windows-arm64),
56+ # not the x86_64 binary under emulation — we smoke the artifact we ship .
57+ BROAD_WIN='[{"os":"windows-2025","arch":"amd64" },{"os":"windows-11-arm","arch":"arm64 "}]'
5458 CORE_PORTABLE='[
5559 {"arch":"amd64","runner":"ubuntu-latest"},
5660 {"arch":"arm64","runner":"ubuntu-24.04-arm"}
@@ -152,6 +156,10 @@ jobs:
152156 if : startsWith(matrix.os, 'ubuntu')
153157 run : |
154158 sudo apt-get update -qq && sudo apt-get install -y -qq clamav > /dev/null 2>&1
159+ # apt auto-starts the clamav-freshclam daemon, which holds a lock on
160+ # freshclam's log/db; stop it so the manual freshclam below can run
161+ # (else: "Failed to lock the log file ... Resource temporarily unavailable").
162+ sudo systemctl stop clamav-freshclam 2>/dev/null || true
155163 sudo sed -i 's/^Example/#Example/' /etc/clamav/freshclam.conf 2>/dev/null || true
156164 grep -q "DatabaseMirror" /etc/clamav/freshclam.conf 2>/dev/null || \
157165 echo "DatabaseMirror database.clamav.net" | sudo tee -a /etc/clamav/freshclam.conf > /dev/null
@@ -183,23 +191,24 @@ jobs:
183191
184192 - uses : msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
185193 with :
186- msystem : CLANG64
194+ msystem : ${{ matrix.arch == 'arm64' && 'CLANGARM64' || ' CLANG64' }}
187195 path-type : inherit
188196 install : >-
189- mingw-w64-clang-x86_64-python3
197+ mingw-w64-clang-${{ matrix.arch == 'arm64' && 'aarch64' || ' x86_64' }} -python3
190198 unzip
191199 zip
192200 coreutils
193201
194202 - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
195203 with :
196- name : binaries-windows-amd64
204+ name : binaries-windows-${{ matrix.arch }}
197205
198206 - name : Extract binary
199207 shell : msys2 {0}
200208 run : |
201209 SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}
202- unzip -o "codebase-memory-mcp${SUFFIX}-windows-amd64.zip"
210+ ARCH=${{ matrix.arch }}
211+ unzip -o "codebase-memory-mcp${SUFFIX}-windows-${ARCH}.zip"
203212 [ -n "$SUFFIX" ] && cp "codebase-memory-mcp${SUFFIX}.exe" codebase-memory-mcp.exe || true
204213
205214 - name : Start artifact server
@@ -208,10 +217,11 @@ jobs:
208217 mkdir -p /tmp/smoke-server
209218 cp codebase-memory-mcp.exe /tmp/smoke-server/
210219 SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}
220+ ARCH=${{ matrix.arch }}
211221 cd /tmp/smoke-server
212- zip -q "codebase-memory-mcp${SUFFIX}-windows-amd64 .zip" codebase-memory-mcp.exe
222+ zip -q "codebase-memory-mcp${SUFFIX}-windows-${ARCH} .zip" codebase-memory-mcp.exe
213223 if [ -n "$SUFFIX" ]; then
214- cp "codebase-memory-mcp${SUFFIX}-windows-amd64 .zip" "codebase-memory-mcp-windows-amd64 .zip"
224+ cp "codebase-memory-mcp${SUFFIX}-windows-${ARCH} .zip" "codebase-memory-mcp-windows-${ARCH} .zip"
215225 fi
216226 sha256sum *.zip > checksums.txt
217227 python3 -m http.server 18080 -d /tmp/smoke-server &
0 commit comments