Skip to content

Commit

Permalink
use runner's cargo and remove Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Nov 29, 2023
1 parent 3ae1100 commit 8541a9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 36 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,18 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Setup Build Environment
run: |
sudo apt update
sudo apt install --yes protobuf-compiler
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-08-28
override: true
components: clippy, rustfmt
- name: Install cargo binaries
run: |
cargo install cargo-sort
run: cargo install cargo-sort
- name: Run Style Check
run: |
make clippy
make fmt
make check-cargo-toml
cargo fmt --all --check
cargo clippy --tests --all-features --all-targets --workspace -- -D warnings
cargo sort --workspace --check
test:
name: test
Expand All @@ -69,16 +62,10 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Setup Build Environment
run: |
sudo apt update
sudo apt install --yes protobuf-compiler
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-08-28
override: true
- name: Run Test
run: |
make test
run: cargo test --workspace
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ readme = "README.md"
[dependencies]
arrow = "38.0.0"
async-trait = "0.1.72"
horaedbproto = "1.0.23"
dashmap = "5.3.4"
futures = "0.3"
horaedbproto = "1.0.23"
paste = "1.0"
thiserror = "1.0.38"
tokio = "1.29"
Expand Down
15 changes: 0 additions & 15 deletions Makefile

This file was deleted.

0 comments on commit 8541a9a

Please sign in to comment.