-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CI workflows, add support for aarch64-unknown-linux-musl prec…
…ompiled binaries (#386) * document hex publish instructions * fix errors in rust CI actions It seems actions-rs/toolchain#221 will not be solved anytime soon. So we switch to `dtolnay/toolchain@v1` to setup Rust in CI. * Add support for prebuild binaries for aarch64-unknown-linux-musl * update Rust release toolchain and Cross dep * update elixir required version in mix.exs and update to v0.8.1-dev * prepare changelog * fix uses of ::set-output in CI as they are deprecated see https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * use correct name for dtolnay/rust-toolchain@stablex * pipe outputs to $GITHUB_OUTPUT * add target-feature=-crt-static rustflag for aarch64-unknown-linux-musl * bash is Fun * revert .gitignore changes
- Loading branch information
Showing
9 changed files
with
53 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
[target.x86_64-apple-darwin] | ||
[target.'cfg(target_os = "macos")'] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] | ||
|
||
[target.aarch64-apple-darwin] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] | ||
|
||
# See https://github.com/rust-lang/rust/issues/59302 | ||
[target.x86_64-unknown-linux-musl] | ||
rustflags = [ | ||
"-C", "target-feature=-crt-static" | ||
] | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
rustflags = [ | ||
"-C", "target-feature=-crt-static" | ||
] | ||
|
||
# Provides a small build size, but takes more time to build. | ||
[profile.release] | ||
lto = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[build.env] | ||
passthrough = [ | ||
"RUSTLER_NIF_VERSION" | ||
] |