From 0043f8e17af4e693b5efa1f2b19f2f9d095f0cc6 Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Tue, 3 Jan 2023 18:03:27 +0000 Subject: [PATCH] wasmtime: Add FreeBSD x86_64 check (#5506) We accidentally broke the build for FreeBSD when introducing the jit-icache-coherence crate. To avoid this happening again, add a check job just to ensure that it can build. See #5323 and #5331 for context. --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86ef20f56a..bd93d98ce1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -172,6 +172,11 @@ jobs: env: CARGO_PROFILE_DEV_DEBUG_ASSERTIONS: false + # Check whether `wasmtime` cross-compiles to x86_64-unknown-freebsd + # TODO: We aren't building with default features since the `ittapi` crate fails to compile on freebsd. + - run: rustup target add x86_64-unknown-freebsd + - run: cargo check -p wasmtime --no-default-features --features cranelift,wat,async,cache --target x86_64-unknown-freebsd + # Check whether `wasmtime` cross-compiles to aarch64-pc-windows-msvc # We don't build nor test it because it lacks trap handling. # Tracking issue: https://github.com/bytecodealliance/wasmtime/issues/4992