fuelen

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

fuelen

Hi Dimitar

I saw this issue and I even almost fully copied some files from that repository with no luck :frowning:

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 :tada:

Also Liked

fuelen

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

Where Next?

Popular in Questions Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement