Skip to content

Commit 8b74c38

Browse files
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.
1 parent 7688b6f commit 8b74c38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docs-action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ jobs:
6868
- name: Build Rust packages
6969
run: cargo build --workspace
7070

71+
- name: Copy gl-sdk shared library to Python package location
72+
run: |
73+
mkdir -p libs/gl-sdk/glsdk
74+
cp target/debug/libglsdk.so libs/gl-sdk/glsdk/libglsdk.so
75+
7176
- name: Sync Python dependencies
7277
run: |
7378
uv lock

0 commit comments

Comments
 (0)