Skip to content

Commit 2c72e25

Browse files
committed
fix(release): inject xlings to registry/bin/ (0.0.4 layout)
The 0.0.4 layout moved xlings from bin/ to registry/bin/. The release workflow's inject step and smoke-test assertions need the new path.
1 parent 0f805c8 commit 2c72e25

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,17 @@ jobs:
138138
--mode static \
139139
-o "${TARBALL_NAME}"
140140
141-
# Inject xlings: extract → add bin/xlings to the wrapper dir →
142-
# re-tar preserving the wrapper. The wrapper dir name matches
143-
# the tarball stem (mcpp pack ties the two together).
141+
# Inject xlings: extract → add registry/bin/xlings to the wrapper
142+
# dir → re-tar preserving the wrapper. Since 0.0.4 the bundled
143+
# xlings lives at <ROOT>/registry/bin/xlings (= <XLINGS_HOME>/bin/xlings).
144144
TARBALL="target/dist/${TARBALL_NAME}"
145145
WRAPPER="${TARBALL_NAME%.tar.gz}"
146146
test -f "$TARBALL"
147147
INJECT=$(mktemp -d)
148148
tar -xzf "$TARBALL" -C "$INJECT"
149-
cp "$XLINGS_BIN" "$INJECT/$WRAPPER/bin/xlings"
150-
chmod +x "$INJECT/$WRAPPER/bin/xlings"
149+
mkdir -p "$INJECT/$WRAPPER/registry/bin"
150+
cp "$XLINGS_BIN" "$INJECT/$WRAPPER/registry/bin/xlings"
151+
chmod +x "$INJECT/$WRAPPER/registry/bin/xlings"
151152
(cd "$INJECT" && tar -czf "$GITHUB_WORKSPACE/${TARBALL}" "$WRAPPER")
152153
rm -rf "$INJECT"
153154
@@ -181,7 +182,7 @@ jobs:
181182
tar -xzf "dist/${TARBALL_NAME}" -C "$SMOKE"
182183
ROOT="$SMOKE/$WRAPPER"
183184
test -x "$ROOT/bin/mcpp"
184-
test -x "$ROOT/bin/xlings"
185+
test -x "$ROOT/registry/bin/xlings"
185186
test -x "$ROOT/mcpp"
186187
file "$ROOT/bin/mcpp" | grep -q 'statically linked'
187188
env -u MCPP_HOME "$ROOT/bin/mcpp" --version

0 commit comments

Comments
 (0)