-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix "cross" configuration for release workflow #14
Changes from all commits
251dd68
3bb067f
d4cc744
101fd92
8565132
ee3f768
d580a98
004e8eb
f8cad81
e792f97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ env: | |
ELIXIR_VERSION: 1.13 | ||
OTP_VERSION: 24.2 | ||
MIX_ENV: test | ||
TOKENIZERS_BUILD: "true" | ||
|
||
jobs: | ||
test: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[build.env] | ||
passthrough = [ | ||
"RUSTLER_NIF_VERSION" | ||
] | ||
|
||
# We need to install some dependencies for specific targets. | ||
[target.arm-unknown-linux-gnueabihf] | ||
pre-build = "./scripts/install-cross-deps" | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
pre-build = "./scripts/install-cross-deps" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Script to install dependencies for cross compilation | ||
|
||
dpkg --add-architecture $CROSS_DEB_ARCH | ||
|
||
apt-get update | ||
apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH openssl:$CROSS_DEB_ARCH | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @philss did you successfully build on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jonatanklosko I could build for those targets locally. I'm trying to build using the CI. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's what I did, but I may have missed something, if you can build then it's great :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Oh, I think I got it right now: https://github.com/philss/tokenizers/actions/runs/3198809038. It needs the vendored package for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jonatanklosko I think it should work good now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, vendoring definitely works, we can even make it such that this only happens on CI via feature flags:
and This does link openssl statically though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea! I couldn't avoid vendoring for those targets, so I'm going to add the feature flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use this anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the "native" module. We want to always force the build in the CI. See:
tokenizers/lib/tokenizers/native.ex
Line 11 in 1222399