Work around wasmer-headless build failure by switching away from Xargo

This commit is contained in:
Arshia Ghafoori
2025-07-16 12:52:24 +04:00
parent c3ca4a6991
commit c3b447055e
3 changed files with 1 additions and 6 deletions

View File

@@ -309,7 +309,6 @@ jobs:
- name: Build Minimal Wasmer Headless
if: ${{ !startsWith(matrix.build, 'linux-musl-x64') }}
run: |
cargo install xargo
echo "" >> Cargo.toml
echo "[profile.release]" >> Cargo.toml
echo "opt-level = 'z'" >> Cargo.toml
@@ -321,9 +320,7 @@ jobs:
echo "incremental = false" >> Cargo.toml
echo "codegen-units = 1" >> Cargo.toml
echo "rpath = false" >> Cargo.toml
rustup override set nightly-2024-11-07
make build-wasmer-headless-minimal
rustup override unset
- name: Dist
run: |
make distribution

View File

@@ -490,7 +490,7 @@ build-wasmer-wasm:
# rpath = false
build-wasmer-headless-minimal: RUSTFLAGS += -C panic=abort
build-wasmer-headless-minimal:
RUSTFLAGS="${RUSTFLAGS}" xargo build --target $(HOST_TARGET) --release --manifest-path=lib/cli/Cargo.toml --no-default-features --features sys,headless-minimal --bin wasmer-headless
RUSTFLAGS="${RUSTFLAGS}" cargo build --target $(HOST_TARGET) --release --manifest-path=lib/cli/Cargo.toml --no-default-features --features sys,headless-minimal --bin wasmer-headless
ifeq ($(IS_DARWIN), 1)
strip target/$(HOST_TARGET)/release/wasmer-headless
else ifeq ($(IS_WINDOWS), 1)

View File

@@ -1,2 +0,0 @@
[dependencies]
std = {}