Skip to content

Commit 0f7d0d4

Browse files
committed
fix(publish): fix CLI binary path in manylinux Docker container
The before-script-linux runs with CWD set to the working-directory (packages/python), but cargo outputs the binary to the workspace root's target/ directory. Fix the cp path to use ../../target/release/kreuzberg and mkdir to use the relative kreuzberg/ directory.
1 parent b022cc4 commit 0f7d0d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,12 @@ jobs:
533533
export OPENSSL_INCLUDE_DIR=/usr/include
534534
fi
535535
# Build CLI binary inside manylinux container
536+
# Note: before-script-linux CWD is the working-directory (packages/python),
537+
# but cargo outputs to the workspace root's target/ dir
536538
echo "=== Building CLI Binary (Linux) ==="
537539
cargo build --release --package kreuzberg-cli --features all
538-
mkdir -p packages/python/kreuzberg
539-
cp target/release/kreuzberg packages/python/kreuzberg/kreuzberg-cli
540+
mkdir -p kreuzberg
541+
cp ../../target/release/kreuzberg kreuzberg/kreuzberg-cli
540542
541543
- name: Build wheels (native)
542544
if: matrix.os != 'ubuntu-latest'

0 commit comments

Comments
 (0)