Open bcba25 opened 1 year ago
Hello! Did you figure out a way around this?
Hello! Did you figure out a way around this?
The issue is similar to https://github.com/sfackler/rust-openssl/issues/1865#issuecomment-1491079210. You can't compile it because the deps can't be carried over to the docker container (which cross uses) from the host even if the host has libssl-dev
It doesn't work for musl target neither.
It doesn't work for musl target neither.
The repository seems to be abandoned. I guess let's look elsewhere. I don't use this action, but I want to contribute to a project that uses it which caused some issues there too
A similar problem happens if you need protoc
installed on the system to build a Rust crate. This repo doesn't seem to advertise a way to include system dependencies into the Docker image that cross
runs in.
For the openssl
problem specifically, I managed to get around it. Even if your main crate doesn't depend on openssl
, you can command all transitive variants of it to be vendored by doing:
[dependencies.openssl-sys]
version = "0.9"
features = ["vendored"]
and by making sure also to set resolver = "1"
.
Do the checklist before filing an issue:
actions-rs
Actions? If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.communityDescription
Hi, I'm creating this issue because i've spend a couple of DAYS trying to solve the following problem but no success. I got a rust web server which has the following dependency
openssl = { version = "=0.10.45", features = ["vendored"] }
which is fails to compile when i use cross in Github Action. Previously it was working, but as i understand there is no longer support of openssl in cross so it is just started to fail. I've tried to install openssl, it is present in a system but during compilation i got the following error:Looking for help and suggestions for this, thank you very much
Workflow code
This is my pipeline which was working previously:
Action output
Expected behavior
Should be able to cross compile to specified target especially when openssl is set as vendored
Additional context
I had another pipeline which doesn't compile due to openssl but it is not cross compiling to another target and it was fixed just but adding those suggested commands.
I've tried adding following configuration but doesn't matter what i do openssl package can't detect openssl on a system
and
Looking for help and suggestions for this, thank you very much