I try to precompile NIFs with rustler_precompiled and CI fails on build stage:
Done.
Going back to original dir: /home/runner/work/html2text/html2text
Run INITIAL_DIR=$(pwd)
Going from path: /home/runner/work/html2text/html2text
To path: native/html2text_nif
/home/runner/work/_temp/a159cf69-94a6-44e2-80ea-f8f303ed912a.sh: line 50: cd: target/aarch64-unknown-linux-gnu/release: No such file or directory
Error: Process completed with exit code 1.
View job on Github
It fails for all jobs, not only for aarch64-unknown-linux-gnu.
I saw this issue and I even almost fully copied some files from that repository with no luck
While writing this I’m trying to remove root Cargo.toml and Cargo.lock completely. As I remember, they were generated by mix rustler.new command. Running mix recreates Cargo.toml, but inside native/ directory.
Could you describe again the steps you took? rustler_mix intentionally creates a workspace Cargo.toml and that should result in the Cargo.lock to live on the root. No other tooling should touch this (or the workspace-less setup we had before).
/edit The error log is gone, but the error looks a bit like rustler_precompiled tries to get the compiled binaries directly from the target directory and is not aware of workspaces