fuelen
Cannot precompie NIFs in CI with rustler_precompiled
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.
Here is a commit where I try to setup rustler_precompiled: Add rustler_precompiled · fuelen/html2text@20e0784 · GitHub
Seems like I miss something obvious, but I don’t understand what exactly.
Marked As Solved
fuelen
Hi Dimitar
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.
And… it helps ![]()
Also Liked
fuelen
I think I found the commit on my local machine with the code that has the issue. I’ve pushed the branch to GitHub GitHub - fuelen/html2text at test_issue_with_rust_pecompiled







