From b2a1ac4cdf4e4783bb67ee3d7a5c9e6dd04489e7 Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Sun, 1 Jan 2023 17:43:53 +0000 Subject: [PATCH] wasmtime: Add FreeBSD x86 check CI Job 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86ef20f56a5b..659f520d8895 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -186,6 +186,21 @@ jobs: - run: rustup target add aarch64-pc-windows-msvc - run: cargo check -p wasmtime --target aarch64-pc-windows-msvc + # Check whether `wasmtime` cross-compiles to x86_64-unknown-freebsd + # Tracking issue: https://github.com/bytecodealliance/wasmtime/issues/2269 + checks_freebsd_x86: + name: Check FreeBSD x86_64 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: ./.github/actions/install-rust + - run: rustup target add x86_64-unknown-freebsd + # TODO: We aren't building with default features since the `ittapi` crate + # fails to compile on freebsd. + - run: cargo check -p wasmtime --no-default-features --features cranelift,wat,async,cache --target x86_64-unknown-freebsd + fuzz_targets: name: Fuzz Targets runs-on: ubuntu-latest