-
-
Notifications
You must be signed in to change notification settings - Fork 339
Closed
Copy link
Labels
Description
Bug Description
Using the workflow from maturin generate-ci
results in failures because uniffi-bindgen
is seemingly being built for a target other than the host.
Running `target/aarch64-unknown-linux-gnu/debug/uniffi-bindgen generate --no-format --language python --out-dir /home/runner/work/Algorand-Rust-FFIs/Algorand-Rust-FFIs/target/maturin/uniffi/algo_models --library /home/runner/work/Algorand-Rust-FFIs/Algorand-Rust-FFIs/target/aarch64-unknown-linux-gnu/release/maturin/libalgo_models_ffi.so`
target/aarch64-unknown-linux-gnu/debug/uniffi-bindgen: 1: �ELF�������K�@��=�@8: not found
target/aarch64-unknown-linux-gnu/debug/uniffi-bindgen: 2: Syntax error: ")" unexpected
The above errors suggests that the binary is was not properly built for the host, although I haven't dug deep into how the maturin action works to confirm this is 100% the problem.
The full action output can be seen here: https://github.com/algorandfoundation/Algorand-Rust-FFIs/actions/runs/13089547874/job/36524600363?pr=7
Your maturin version (maturin --version
)
1.8.1
Your Python version (python -V
)
3.13.1
Your pip version (pip -V
)
Unsure (github action)
What bindings you're using
uniffi
Does cargo build
work?
- Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /
)?
- Yes
Steps to Reproduce
- Attempt to run the following workflow https://github.com/algorandfoundation/Algorand-Rust-FFIs/actions/runs/13089547874/workflow