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

Build binaries for Linux, Windows, and macOS for every release #74

Merged
merged 5 commits into from
Dec 11, 2020

Conversation

mre
Copy link
Member

@mre mre commented Dec 9, 2020

This creates lychee binaries for every release.
See #59 for more info.

Created a fake release here to show how the output looks like.

Some notes:

  • mips builds are not supported by ring at the moment, which is a sub-dependency. reqwests has support for rustls through a feature flag, but I doubt that it supports mips either.
  • With around 26 minutes, the windows builds take the longest time. (2-3x as long as macOS and Linux.) I don't know why this is; the compile step is just slower. ¯_(ツ)_/¯
  • Introducing a feature flag for using vendored openssl as it prevents headaches with the OpenSSL shared library on Linux.
  • Adding openssl-sys as direct dependency. This allows us to pass the vendored-openssl feature flag to this dependency and compile openssl from source.
  • Using bruceadams/[email protected] to pull in the tag name from a release. This allows us to create a new release from the Github UI while the pipeline can still detected the respective tag for a release.

@mre mre requested a review from pawroman December 9, 2020 22:57
This allows us to trigger a build which
includes a static dependency to openssl by compiling it from source in a
build.rs script. It is useful for Linux, which has wildly different config
parameters for different architectures.
This allows us to pass the vendored-openssl
feature flag to this dependency and compile openssl from source
@mre
Copy link
Member Author

mre commented Dec 11, 2020

Going ahead and merging this to unblock #64. We can always revisit this pipeline and fix any potential issues.

@mre mre merged commit c7d7c6c into master Dec 11, 2020
@mre mre deleted the binary-releases branch December 11, 2020 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant