Skip to content

Commit

Permalink
Refactor rustup / cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmturner committed Mar 3, 2025
1 parent ba49f37 commit d7fde13
Showing 1 changed file with 22 additions and 51 deletions.
73 changes: 22 additions & 51 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup show
rustup self update
rustup show
rustup install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run tests (ex-FlightSQL)
run: |
cargo test
Expand All @@ -69,10 +64,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run FlightSQL tests
run: |
# Single thread needed because we spin up a server that listens on port and we need each
Expand All @@ -87,14 +80,14 @@ jobs:
arch: [amd64]
steps:
- uses: actions/checkout@v3

- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Start LocalStack
uses: LocalStack/[email protected]
with:
image-tag: 'latest'
install-awslocal: 'true'
configuration: DEBUG=1

- name: Run Tests against LocalStack
run: |
awslocal s3 mb s3://test
Expand Down Expand Up @@ -123,10 +116,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run Functions-JSON tests
run: |
cargo test --features=functions-json extension_cases::functions_json
Expand All @@ -150,10 +141,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run Deltalake tests
run: |
cargo test --features=deltalake extension_cases::deltalake
Expand All @@ -177,10 +166,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run Hudi tests
run: |
cargo test --features=hudi extension_cases::hudi
Expand All @@ -204,10 +191,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run UDFs WASM tests
run: |
cargo test --features=udfs-wasm extension_cases::udfs_WASM
Expand All @@ -231,10 +216,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run UDFs WASM tests
run: |
cargo test --manifest-path crates/datafusion-functions-parquet/Cargo.toml
Expand All @@ -258,10 +241,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run UDFs WASM tests
run: |
cargo test --manifest-path crates/datafusion-udfs-wasm/Cargo.toml
Expand All @@ -285,13 +266,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup show
rustup self update
rustup show
rustup install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Start FlightSQL Server
run: |
cargo r --features=experimental-flightsql-server,auth -- --serve --config data/configs/flightsql_basic.toml &
Expand All @@ -318,13 +294,8 @@ jobs:
with:
path: /home/runner/target
key: target-dft-cache-
- name: Setup Rust toolchain
run: |
rustup show
rustup self update
rustup show
rustup install stable
rustup default stable
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Start FlightSQL Server
run: |
cargo r --features=experimental-flightsql-server,auth -- --serve --config data/configs/flightsql_bearer.toml &
Expand Down

0 comments on commit d7fde13

Please sign in to comment.