-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
3,262 additions
and
966 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,18 @@ 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] | ||
|
||
- name: Install cargo-sort | ||
run: make install-cargo-sort | ||
|
||
- name: Install taplo-cli | ||
run: make install-taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
- name: Check toml format | ||
run: make check-toml | ||
|
||
- name: Cargo format | ||
run: make check-fmt | ||
|
@@ -61,11 +65,19 @@ jobs: | |
- name: Cargo clippy | ||
run: make check-clippy | ||
|
||
- name: Install cargo-sort | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
- name: Cargo sort | ||
run: make cargo-sort | ||
run: cargo sort -c -w | ||
|
||
- name: Install cargo-machete | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-machete | ||
- name: Cargo Machete | ||
run: make cargo-machete | ||
run: cargo machete | ||
|
||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -80,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 | ||
|
||
|
@@ -100,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 | ||
|
||
|
@@ -113,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 | ||
|
@@ -127,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.