Apache DataFusion SQL Query Engine
ARROW-12224: [Rust] Use stable rust for no default test, clean up CI tests
Andrew Lamb72937d5d5317
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex e6a756a99c..0a55113fbb 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -33,7 +33,7 @@ jobs:# build the library, a compilation step used by multiple steps belowlinux-build-lib:- name: AMD64 Debian 10 Rust ${{ matrix.rust }} build libraries+ name: Build Libraries on AMD64 Rust ${{ matrix.rust }}runs-on: ubuntu-lateststrategy:matrix:@@ -42,7 +42,7 @@ jobs:container:image: ${{ matrix.arch }}/rustenv:- # Disable full debug symbol generation to speed up CI build+ # Disable full debug symbol generation to speed up CI build and keep memory down# "1" means line tables only, which is useful for panic tracebacks.RUSTFLAGS: "-C debuginfo=1"steps:@@ -70,14 +70,12 @@ jobs:run: |export CARGO_HOME="/github/home/.cargo"export CARGO_TARGET_DIR="/github/home/target"- # do not produce debug symbols to keep memory usage down- export RUSTFLAGS="-C debuginfo=0"cd rustcargo build# test the cratelinux-test:- name: AMD64 Debian 10 Rust ${{ matrix.rust }} test workspace+ name: Test Workspace on AMD64 Rust ${{ matrix.rust }}needs: [linux-build-lib]runs-on: ubuntu-lateststrategy:@@ -87,7 +85,7 @@ jobs:container:image: ${{ matrix.arch }}/rustenv:- # Disable full debug symbol generation to speed up CI build+ # Disable full debug symbol generation to speed up CI build and keep memory down# "1" means line tables only, which is useful for panic tracebacks.RUSTFLAGS: "-C debuginfo=1"ARROW_TEST_DATA: /__w/arrow/arrow/testing/data@@ -117,8 +115,6 @@ jobs:run: |export CARGO_HOME="/github/home/.cargo"export CARGO_TARGET_DIR="/github/home/target"- # do not produce debug symbols to keep memory usage down- export RUSTFLAGS="-C debuginfo=0"cd rust# run tests on all workspace members with default feature listcargo test@@ -138,7 +134,7 @@ jobs:# test the --features "simd" of the arrow crate. This requires nightly.linux-test-simd:- name: AMD64 Debian 10 Rust ${{ matrix.rust }} test arrow simd+ name: Test SIMD on AMD64 Rust ${{ matrix.rust }}runs-on: ubuntu-lateststrategy:matrix:@@ -147,7 +143,7 @@ jobs:container:image: ${{ matrix.arch }}/rustenv:- # Disable full debug symbol generation to speed up CI build+ # Disable full debug symbol generation to speed up CI build and keep memory down# "1" means line tables only, which is useful for panic tracebacks.RUSTFLAGS: "-C debuginfo=1"ARROW_TEST_DATA: /__w/arrow/arrow/testing/data@@ -176,13 +172,11 @@ jobs:run: |export CARGO_HOME="/github/home/.cargo"export CARGO_TARGET_DIR="/github/home/target"- # do not produce debug symbols to keep memory usage down- export RUSTFLAGS="-C debuginfo=0"cd rust/arrowcargo test --features "simd"windows-and-macos:- name: ${{ matrix.os }} Rust ${{ matrix.rust }}+ name: Test on ${{ matrix.os }} Rust ${{ matrix.rust }}runs-on: ${{ matrix.os }}strategy:matrix:@@ -204,6 +198,8 @@ jobs:run: |export ARROW_TEST_DATA=$(pwd)/testing/dataexport PARQUET_TEST_DATA=$(pwd)/cpp/submodules/parquet-testing/data+ # do not produce debug symbols to keep memory usage down+ export RUSTFLAGS="-C debuginfo=0"cd rustcargo test@@ -218,7 +214,7 @@ jobs:container:image: ${{ matrix.arch }}/rustenv:- # Disable full debug symbol generation to speed up CI build+ # Disable full debug symbol generation to speed up CI build and keep memory down# "1" means line tables only, which is useful for panic tracebacks.RUSTFLAGS: "-C debuginfo=1"steps:@@ -250,7 +246,7 @@ jobs:cargo clippy --all-targets --workspace -- -D warnings -A clippy::redundant_field_namesmiri-checks:- name: Miri Checks+ name: MIRIruns-on: ubuntu-lateststrategy:matrix:@@ -326,7 +322,7 @@ jobs:# test FFI against the C-Data interface exposed by pyarrowpyarrow-integration-test:- name: Pyarrow C data interface integration test+ name: Test Pyarrow C Data Interfaceruns-on: ubuntu-lateststrategy:matrix:@@ -372,7 +368,7 @@ jobs:# test the arrow crate builds against wasm32 in stable rustwasm32-build:- name: AMD64 Debian 10 Rust ${{ matrix.rust }} test arrow wasm32+ name: Build wasm32 on AMD64 Rust ${{ matrix.rust }}runs-on: ubuntu-lateststrategy:matrix:@@ -381,7 +377,7 @@ jobs:container:image: ${{ matrix.arch }}/rustenv:- # Disable full debug symbol generation to speed up CI build+ # Disable full debug symbol generation to speed up CI build and keep memory down# "1" means line tables only, which is useful for panic tracebacks.RUSTFLAGS: "-C debuginfo=1"ARROW_TEST_DATA: /__w/arrow/arrow/testing/data@@ -411,23 +407,21 @@ jobs:run: |export CARGO_HOME="/github/home/.cargo"export CARGO_TARGET_DIR="/github/home/target"- # do not produce debug symbols to keep memory usage down- export RUSTFLAGS="-C debuginfo=0"cd rust/arrowcargo build --target wasm32-unknown-unknown# test the projects can build without default featuresdefault-build:- name: AMD64 Debian 10 Rust ${{ matrix.rust }} test no defaults+ name: Check No Defaults on AMD64 Rust ${{ matrix.rust }}runs-on: ubuntu-lateststrategy:matrix:arch: [amd64]- rust: [nightly-2020-11-24]+ rust: [stable]container:image: ${{ matrix.arch }}/rustenv:- # Disable full debug symbol generation to speed up CI build+ # Disable full debug symbol generation to speed up CI build and keep memory down# "1" means line tables only, which is useful for panic tracebacks.RUSTFLAGS: "-C debuginfo=1"ARROW_TEST_DATA: /__w/arrow/arrow/testing/data