Skip to content

Commit 1dae94f

Browse files
authored
Merge pull request #894 from DeusData/fix/smoke-serve-linux-portable
fix(smoke): serve the -portable linux asset from the artifact server
2 parents a5351d3 + a50f97c commit 1dae94f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/_smoke.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,19 @@ jobs:
114114
cp "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \
115115
"/tmp/smoke-server/codebase-memory-mcp-${OS}-${ARCH}.tar.gz"
116116
fi
117+
# The linux binary self-updates from the fully-static "-portable" asset
118+
# (build_update_url in src/cli/cli.c appends -portable on linux; _build.yml's
119+
# build-linux-portable job ships it), so the smoke server must serve that name
120+
# too -- otherwise `update` 404s and Phase 14 fails. Mirror the tarball(s) under
121+
# the -portable name on linux only.
122+
if [ "$OS" = "linux" ]; then
123+
cp "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \
124+
"/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}-portable.tar.gz"
125+
if [ -n "$SUFFIX" ]; then
126+
cp "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}-portable.tar.gz" \
127+
"/tmp/smoke-server/codebase-memory-mcp-${OS}-${ARCH}-portable.tar.gz"
128+
fi
129+
fi
117130
cd /tmp/smoke-server
118131
sha256sum *.tar.gz > checksums.txt 2>/dev/null || shasum -a 256 *.tar.gz > checksums.txt
119132
python3 -m http.server 18080 -d /tmp/smoke-server &

0 commit comments

Comments
 (0)