mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
Add musl build target for CI.
This commit is contained in:
parent
bf5234b06f
commit
5119fb3d68
@ -43,6 +43,7 @@ steps:
|
|||||||
set -ex
|
set -ex
|
||||||
rustup update --no-self-update $RUST_TOOLCHAIN
|
rustup update --no-self-update $RUST_TOOLCHAIN
|
||||||
rustup default $RUST_TOOLCHAIN
|
rustup default $RUST_TOOLCHAIN
|
||||||
|
rustup target add x86_64-unknown-linux-musl
|
||||||
|
|
||||||
rustc -Vv
|
rustc -Vv
|
||||||
cargo -V
|
cargo -V
|
||||||
|
6
Makefile
6
Makefile
@ -258,6 +258,12 @@ check: check-bench
|
|||||||
release:
|
release:
|
||||||
cargo build --release --features backend-singlepass,backend-cranelift,backend-llvm,loader-kernel,experimental-io-devices,log/release_max_level_off
|
cargo build --release --features backend-singlepass,backend-cranelift,backend-llvm,loader-kernel,experimental-io-devices,log/release_max_level_off
|
||||||
|
|
||||||
|
# Release with musl target
|
||||||
|
release-musl:
|
||||||
|
# backend-llvm is not included due to dependency on wabt.
|
||||||
|
# experimental-io-devices is not included due to missing x11-fb.
|
||||||
|
cargo build --release --target x86_64-unknown-linux-musl --features backend-singlepass,backend-cranelift,loader-kernel,log/release_max_level_off,wasi --no-default-features
|
||||||
|
|
||||||
# Only one backend (cranelift)
|
# Only one backend (cranelift)
|
||||||
release-clif:
|
release-clif:
|
||||||
# If you are on macOS, you will need mingw-w64 for cross compiling to Windows
|
# If you are on macOS, you will need mingw-w64 for cross compiling to Windows
|
||||||
|
@ -141,6 +141,9 @@ jobs:
|
|||||||
- bash: make release
|
- bash: make release
|
||||||
displayName: Build (*nix)
|
displayName: Build (*nix)
|
||||||
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
|
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
|
||||||
|
- bash: make release-musl
|
||||||
|
displayName: Build (Linux, x86_64-unknown-linux-musl)
|
||||||
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
|
||||||
- bash: make release-llvm
|
- bash: make release-llvm
|
||||||
displayName: Build (Windows)
|
displayName: Build (Windows)
|
||||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user