Skip to content

uniffi-bindgen seemingly not built for host target with generate-ci workflow #2461

@joe-p

Description

@joe-p

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

  1. Attempt to run the following workflow https://github.com/algorandfoundation/Algorand-Rust-FFIs/actions/runs/13089547874/workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    bindings/uniffiuniffi bindingsbugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions