From e3341827d46a82f5977fddd76566fc69cb885955 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Thu, 4 Dec 2025 09:21:24 -0800 Subject: [PATCH] ci: Copy gl-sdk.so from cargo target to python's expected location The gl-sdk Python package build was failing because while cargo build --workspace successfully compiles libglsdk.so into the Cargo target directory (target/release/libglsdk.so), the Python package's pyproject.toml expects this shared library at libs/gl-sdk/glsdk/libglsdk.so as a forced inclusion, causing uv sync to fail with a FileNotFoundError when attempting to build the editable wheel. This fix adds a step to copy the compiled library from the Cargo build output to the expected Python package location before running uv sync, ensuring the file exists when hatchling processes the forced inclusion. --- .github/workflows/docs-action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docs-action.yml b/.github/workflows/docs-action.yml index 6568b137..ad3baea1 100644 --- a/.github/workflows/docs-action.yml +++ b/.github/workflows/docs-action.yml @@ -68,6 +68,11 @@ jobs: - name: Build Rust packages run: cargo build --workspace + - name: Copy gl-sdk shared library to Python package location + run: | + mkdir -p libs/gl-sdk/glsdk + cp target/debug/libglsdk.so libs/gl-sdk/glsdk/libglsdk.so + - name: Sync Python dependencies run: | uv lock