Skip to content

Commit

Permalink
create Rust CI
Browse files Browse the repository at this point in the history
Signed-off-by: zenghua <[email protected]>
  • Loading branch information
zenghua committed Oct 20, 2023
1 parent 6bf075f commit b3f7577
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SPDX-FileCopyrightText: 2023 LakeSoul Contributors
#
# SPDX-License-Identifier: Apache-2.0

on:
push:
paths:
- "rust/**"
branches:
- 'main'
pull_request:
paths:
- "rust/**"
branches:
- 'main'
- 'release/**'
workflow_dispatch:

name: Rust CI

env:
RUSTFLAGS: "-Dwarnings"

jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
components: clippy
default: true
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: "23.x"
- name: Run tests
run: cd rust && cargo test --all-features --package lakesoul-datafusion

6 changes: 3 additions & 3 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
on:
push:
paths:
- "native-io/**"
- "rust/**"
branches:
- 'main'
pull_request:
paths:
- "native-io/**"
- "rust/**"
branches:
- 'main'
- 'release/**'
workflow_dispatch:

name: Clippy check
name: Rust Clippy Check

# Make sure CI fails on all warnings, including Clippy lints
env:
Expand Down

0 comments on commit b3f7577

Please sign in to comment.