From 97a1b21d01b896cea803b48c7841746d899eb3a1 Mon Sep 17 00:00:00 2001 From: "xudong.w" Date: Fri, 4 Feb 2022 22:41:16 +0800 Subject: [PATCH] add `cargo check --release` to ci (#1737) * remote test * Update .github/workflows/rust.yml Co-authored-by: Andrew Lamb Co-authored-by: Andrew Lamb --- .github/workflows/rust.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d466d67efa6f..046309c71482 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -58,12 +58,18 @@ jobs: rustup toolchain install ${{ matrix.rust }} rustup default ${{ matrix.rust }} rustup component add rustfmt - - name: Build Workspace + - name: Build workspace in debug mode run: | cargo build env: CARGO_HOME: "/github/home/.cargo" - CARGO_TARGET_DIR: "/github/home/target" + CARGO_TARGET_DIR: "/github/home/target/debug" + - name: Build workspace in release mode + run: | + cargo check --release + env: + CARGO_HOME: "/github/home/.cargo" + CARGO_TARGET_DIR: "/github/home/target/release" - name: Check DataFusion Build without default features run: | cargo check --no-default-features -p datafusion