Skip to content

Commit

Permalink
Merge branch 'main' into datafusion-statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
gruuya committed Jan 27, 2025
2 parents 979d07a + 430498d commit 36c8789
Show file tree
Hide file tree
Showing 45 changed files with 3,049 additions and 950 deletions.
16 changes: 11 additions & 5 deletions .github/actions/setup-builder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,24 @@ name: Prepare Rust Builder
description: 'Prepare Rust Build Environment'
inputs:
rust-version:
description: 'version of rust to install (e.g. stable)'
required: true
default: 'stable'
description: 'version of rust to install and use'
runs:
using: "composite"
steps:
- name: Setup Rust toolchain
- name: Setup specified Rust toolchain
shell: bash
if: ${{ inputs.rust-version != '' }}
run: |
echo "Installing ${{ inputs.rust-version }}"
rustup toolchain install ${{ inputs.rust-version }}
rustup default ${{ inputs.rust-version }}
rustup override set ${{ inputs.rust-version }}
rustup component add rustfmt clippy
- name: Setup Rust toolchain according to rust-toolchain.toml
shell: bash
if: ${{ inputs.rust-version == '' }}
run: |
echo "Installing toolchain according to rust-toolchain.toml"
rustup show
rustup component add rustfmt clippy
- name: Fixup git permissions
# https://github.com/actions/checkout/issues/766
Expand Down
33 changes: 28 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder

- name: Check License Header
uses: apache/skywalking-eyes/[email protected]

Expand Down Expand Up @@ -89,12 +92,10 @@ jobs:

- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: ${{ env.rust_msrv }}

- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2

- name: Build
run: make build

Expand All @@ -109,6 +110,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder

- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2

Expand All @@ -122,8 +126,6 @@ jobs:

- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: ${{ env.rust_msrv }}

- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2
Expand All @@ -136,3 +138,24 @@ jobs:

- name: Doc Test
run: cargo test --no-fail-fast --doc --all-features --workspace

msrv:
name: Verify MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Nightly Rust toolchain
uses: ./.github/actions/setup-builder
- name: Generate minimal versions lockfile
run: |
cargo generate-lockfile -Z direct-minimal-versions -Z minimal-versions
# Some dependencies don't correctly specify a minimal version for their dependencies and will fail to build.
# So we update these transitive dependencies here.
cargo update tap faststr metainfo linkedbytes
- name: Setup MSRV Rust toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: ${{ env.rust_msrv }}
- name: Check MSRV
run: |
cargo +${{ env.rust_msrv }} check --locked --workspace --exclude iceberg-datafusion --exclude iceberg-catalog-s3tables --exclude iceberg-integration-tests
Loading

0 comments on commit 36c8789

Please sign in to comment.