From 139536828a080fa3278fde9a1e6b9ec69e6b0cd6 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Fri, 6 Mar 2020 15:38:21 +0100 Subject: [PATCH] Add non-standard builds of Cranelift in automation; This adds the following build setups in CI: - only x86, - only arm64, - disable debug assertions. --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cac3dd23fe..18bff65d2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -234,6 +234,17 @@ jobs: env: RUST_BACKTRACE: 1 + # Perform various builds of Cranelift under different configurations: + # - only x86 backend support, + # - only arm64 backend support, + # - no debug_assertions. + - run: cargo build --manifest-path=./cranelift/Cargo.toml --bin clif-util --no-default-features --features=cranelift-codegen/arm64 + shell: bash + - run: cargo build --manifest-path=./cranelift/Cargo.toml --bin clif-util --no-default-features --features=cranelift-codegen/x86 + shell: bash + - run: cargo rustc --manifest-path=./cranelift/Cargo.toml --bin clif-util -- -C debug_assertions=off + shell: bash + # Verify that cranelift's code generation is deterministic meta_determinist_check: name: Meta deterministic check