Skip to content

Commit

Permalink
Fixed CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Apr 18, 2021
1 parent 53c9668 commit 444b1ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,7 @@ jobs:
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust
cargo build
# Ballista is currently not part of the main workspace so requires a separate build step
- name: Build Ballista
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust/ballista/rust
# snmalloc requires cmake so build without default features
cargo build --no-default-features
# test the crate
linux-test:
Expand Down Expand Up @@ -123,7 +114,6 @@ jobs:
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust
# run tests on all workspace members with default feature list
cargo test
# test datafusion examples
Expand All @@ -139,14 +129,6 @@ jobs:
cargo run --example dynamic_types
cargo run --example read_csv
cargo run --example read_csv_infer_schema
# Ballista is currently not part of the main workspace so requires a separate test step
- name: Run Ballista tests
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust/ballista/rust
# snmalloc requires cmake so build without default features
cargo test --no-default-features
# test the --features "simd" of the arrow crate. This requires nightly.
linux-test-simd:
Expand Down Expand Up @@ -188,7 +170,7 @@ jobs:
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust/arrow
cd arrow
cargo test --features "simd"
windows-and-macos:
Expand Down Expand Up @@ -216,7 +198,6 @@ jobs:
export 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 rust
cargo test
clippy:
Expand Down Expand Up @@ -258,7 +239,6 @@ jobs:
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust
cargo clippy --all-targets --workspace -- -D warnings -A clippy::redundant_field_names
miri-checks:
Expand Down Expand Up @@ -290,7 +270,6 @@ jobs:
RUST_LOG: 'trace'
run: |
export MIRIFLAGS="-Zmiri-disable-isolation"
cd rust
cargo miri setup
cargo clean
# Ignore MIRI errors until we can get a clean run
Expand Down Expand Up @@ -330,7 +309,6 @@ jobs:
# 2020-11-15: There is a cargo-tarpaulin regression in 0.17.0
# see https://github.com/xd009642/tarpaulin/issues/618
cargo install --version 0.16.0 cargo-tarpaulin
cd rust
cargo tarpaulin --out Xml
- name: Report coverage
continue-on-error: true
Expand Down Expand Up @@ -373,7 +351,7 @@ jobs:
export CARGO_HOME="/home/runner/.cargo"
export CARGO_TARGET_DIR="/home/runner/target"
cd rust/arrow-pyarrow-integration-testing
cd arrow-pyarrow-integration-testing
python -m venv venv
source venv/bin/activate
Expand Down Expand Up @@ -423,7 +401,7 @@ jobs:
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust/arrow
cd arrow
cargo build --target wasm32-unknown-unknown
# test the projects can build without default features
Expand Down Expand Up @@ -466,5 +444,5 @@ jobs:
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd rust/arrow
cd arrow
cargo check --all-targets --no-default-features
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ repos:
- id: rustfmt
name: Rust Format
language: system
entry: bash -c "cd rust && cargo +stable fmt --all -- --check"
files: ^rust/.*\.rs$
entry: bash -c "cargo +stable fmt --all -- --check"
files: ^.*\.rs$
types:
- file
- rust
Expand Down

0 comments on commit 444b1ca

Please sign in to comment.