Skip to content

Commit bcb0f8a

Browse files
committed
fix: [release] smoke-test the shipped binary (altimate-code) after de-dupe
The binary de-dupe drops the redundant `altimate` from the platform package, but the release workflow's "Smoke test binary" step still did `find -name altimate` → "No binary found" (Build failed before publish; no partial publish). Point it at `altimate-code`, the binary the package actually ships and the wrapper resolves. Also fix the plain sanity Dockerfile's binary copy for the same reason (not in the release path, but correct). Validated with a real release-mode build (OPENCODE_RELEASE=1): archive created, `altimate` removed + `altimate-code` kept, smoke test finds altimate-code and it starts (--version), platform package 108MB compressed (well under npm's limit).
1 parent 932d002 commit bcb0f8a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ jobs:
108108
if: matrix.name == 'linux-x64'
109109
run: |
110110
# Resolve to an absolute path before we cd away from the workspace.
111-
BINARY=$(find "$(pwd)/packages/opencode/dist" -name altimate -type f | head -1)
111+
# Test `altimate-code` — the binary the platform package actually ships
112+
# (the redundant `altimate` copy is dropped from the npm package after the
113+
# release archive is built, to stay under npm's tarball size limit).
114+
BINARY=$(find "$(pwd)/packages/opencode/dist" -name altimate-code -type f | head -1)
112115
if [ -z "$BINARY" ]; then
113116
echo "::error::No binary found in dist/"
114117
exit 1

test/sanity/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN cd /home/testuser/.altimate-install && \
4040
ARG TARGETARCH
4141
RUN ARCH="${TARGETARCH:-$(uname -m | sed 's/x86_64/x64/' | sed 's/aarch64/arm64/')}" && \
4242
mkdir -p /home/testuser/.local/bin && \
43-
cp /home/testuser/.altimate-install/dist/@altimateai/altimate-code-linux-${ARCH}/bin/altimate /home/testuser/.local/bin/altimate && \
43+
cp /home/testuser/.altimate-install/dist/@altimateai/altimate-code-linux-${ARCH}/bin/altimate-code /home/testuser/.local/bin/altimate && \
4444
chmod +x /home/testuser/.local/bin/altimate && \
4545
mkdir -p /home/testuser/.altimate/builtin && \
4646
cp -r /home/testuser/.altimate-install/skills/* /home/testuser/.altimate/builtin/

0 commit comments

Comments
 (0)