Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor out datafusion app to its own crate #275

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: "Setup Rust"
description: "Installs the stable Rust toolchain and optionally adds extra components"
inputs:
add_clippy:
description: "Whether to add the clippy component"
required: false
default: "false"
runs:
using: "composite"
steps:
- name: Setup Rust toolchain
shell: bash
run: |
rustup show
rustup self update
rustup install stable
rustup default stable
rustup component add clippy
20 changes: 6 additions & 14 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ jobs:
strategy:
matrix:
arch: [amd64]
rust: [stable]
steps:
- uses: actions/checkout@v2
- name: Setup toolchain
run: |
rustup toolchain install stable
rustup default stable
rustup component add rustfmt
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Run
run: cargo fmt --all -- --check
clippy:
Expand All @@ -41,7 +37,6 @@ jobs:
strategy:
matrix:
arch: [amd64]
rust: [stable]
container:
image: ${{ matrix.arch }}/rust
env:
Expand All @@ -53,20 +48,17 @@ jobs:
with:
submodules: true
- name: Cache Cargo
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /home/runner/.cargo
key: cargo-S3-cache-
- name: Setup Rust Toolchain
uses: ./.github/actions/setup-rust
- name: Cache Rust dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /home/runner/target
key: target-S3-cache-
- name: Setup Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
rustup component add rustfmt clippy
- name: Run clippy
run: |
cargo clippy --all-features --workspace -- -D warnings
Expand Down
Loading
Loading