Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-build hook #565

Closed
andrewbanchich opened this issue Jun 29, 2021 · 1 comment · Fixed by #678
Closed

Add pre-build hook #565

andrewbanchich opened this issue Jun 29, 2021 · 1 comment · Fixed by #678

Comments

@andrewbanchich
Copy link

I'd like to use an official image like centos/devtoolset-7-toolchain-centos7, which I can do by adding to my Cross.toml. However, the image doesn't come with openssl installed. It seems like overkill to have to create and maintain a Dockerfile, then add an extra build script to my CI just to get openssl.

Instead, would it be possible to do something like this?

[target.x86_64-unknown-linux-gnu]
image = "centos/devtoolset-7-toolchain-centos7"
pre-build = "yum install openssl-devel"
@Emilgardis
Copy link
Member

This has been implemented!

[target.x86_64-unknown-linux-gnu]
image = "centos/devtoolset-7-toolchain-centos7"
pre-build = ["yum install openssl-devel"]

should just work now with latest cross :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants