Move custom musl build instructions under generic cargo-dist configs.
This commit is contained in:
parent
31819fe197
commit
538181f145
|
@ -1,3 +1,4 @@
|
||||||
- run: |
|
- if: ${{ runner.os == 'Linux' }}
|
||||||
sudo apt-get install -y pkg-config libssl-dev musl musl-dev musl-tools
|
run: |
|
||||||
rustup target add x86_64-unknown-linux-musl
|
sudo apt-get install -y pkg-config libssl-dev musl musl-dev musl-tools
|
||||||
|
rustup target add x86_64-unknown-linux-musl
|
||||||
|
|
19
Cargo.toml
19
Cargo.toml
|
@ -39,6 +39,15 @@ install-updater = false
|
||||||
install-path = "~/.aiken/bin"
|
install-path = "~/.aiken/bin"
|
||||||
# Whether to publish prereleases to package managers
|
# Whether to publish prereleases to package managers
|
||||||
publish-prereleases = true
|
publish-prereleases = true
|
||||||
|
# Inject build steps into the build-local-artifacts job to prepare the container.
|
||||||
|
# This is needed to install libssl-dev and musl tools for producing statically linked
|
||||||
|
# binary on Linux and avoid weird segfaults.
|
||||||
|
#
|
||||||
|
# Note: should be a path relative to the .github/workflows/ directory, and
|
||||||
|
# which should point to a .yml file containing the github workflow steps just
|
||||||
|
# as one would normally write them in a workflow.
|
||||||
|
[workspace.metadata.dist]
|
||||||
|
github-build-setup = "../musl-build-setup.yml"
|
||||||
|
|
||||||
[[workspace.metadata.dist.artifact]]
|
[[workspace.metadata.dist.artifact]]
|
||||||
target = "x86_64-unknown-linux-musl"
|
target = "x86_64-unknown-linux-musl"
|
||||||
|
@ -49,16 +58,6 @@ features = ["bundle_openssl"]
|
||||||
[workspace.metadata.dist.github-custom-runners]
|
[workspace.metadata.dist.github-custom-runners]
|
||||||
x86_64-unknown-linux-musl = "ubuntu-22.04"
|
x86_64-unknown-linux-musl = "ubuntu-22.04"
|
||||||
|
|
||||||
# Inject build steps into the build-local-artifacts job to prepare the container.
|
|
||||||
# This is needed to install libssl-dev and musl tools for producing statically linked
|
|
||||||
# binary on Linux and avoid weird segfaults.
|
|
||||||
#
|
|
||||||
# Note: should be a path relative to the .github/workflows/ directory, and
|
|
||||||
# which should point to a .yml file containing the github workflow steps just
|
|
||||||
# as one would normally write them in a workflow.
|
|
||||||
[workspace.metadata.dist.github-build-setup]
|
|
||||||
x86_64-unknown-linux-musl = "../musl-build-setup.yml"
|
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
walkdir = "2.3.2"
|
walkdir = "2.3.2"
|
||||||
insta = { version = "1.30.0", features = ["yaml", "json", "redactions"] }
|
insta = { version = "1.30.0", features = ["yaml", "json", "redactions"] }
|
||||||
|
|
Loading…
Reference in New Issue