Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: CratesPro Extensions Check, Test and Lints
name: Rust Extensions Check, Test and Lints

on:
pull_request:
branches:
- main
paths:
- '.github/workflows/cratespro-**'
- 'extensions/cratespro/**'
- '.github/workflows/rust-**'
- 'extensions/rust/**'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: extensions/cratespro
working-directory: extensions/rust
env:
CARGO_TERM_COLOR: always
steps:
Expand All @@ -44,4 +44,4 @@ jobs:

- name: Run cargo test
run: |
cargo test --manifest-path extensions/cratespro/Cargo.toml --all-features --no-fail-fast -- --nocapture
cargo test --manifest-path extensions/rust/Cargo.toml --all-features --no-fail-fast -- --nocapture
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
"common/repo_import", # extract repo and import data into tugraph
"common/search",
"common/tudriver", # tugraph client, deal with the quary from router
"import_tugraph",
"tugraph",
]

resolver = "2" # use resolver of version 2
Expand All @@ -21,6 +21,6 @@ search = { path = "common/search" }
tudriver = { path = "common/tudriver" }
database = { path = "common/database" }
entity = { path = "common/database/entity" }
import_tugraph = {path = "import_tugraph"}
import_tugraph = {path = "tugraph"}

# third-party (所有第三方依赖, 按字母表排序, 均保留1个小数点)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "import_tugraph"
name = "tugraph"
version = "0.1.0"
edition = "2021"
default-run = "import_tugraph"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ IMAGE_NAME=localhost:30500/crates-pro-import-tugraph:local-$TIMESTAMP
### Preparation: Sync source directories
rsync --delete --archive $CRATESPRO_DIR/ $INFRA_DIR/project/crates-pro --exclude="/.git" --exclude="/buck-out" --exclude="/build" --exclude="/target"
rsync --delete --archive $CODE_DIR/ $INFRA_DIR/project/crates-pro/import_tugraph
rsync --delete --archive $MEGA_DIR/extensions/cratespro/common/repo_import/ $INFRA_DIR/project/crates-pro/repo_import/
rsync --delete --archive $MEGA_DIR/extensions/cratespro/common/database/ $INFRA_DIR/project/crates-pro/database/
rsync --delete --archive $MEGA_DIR/extensions/cratespro/common/model/ $INFRA_DIR/project/crates-pro/model/
rsync --delete --archive $MEGA_DIR/extensions/rust/common/repo_import/ $INFRA_DIR/project/crates-pro/repo_import/
rsync --delete --archive $MEGA_DIR/extensions/rust/common/database/ $INFRA_DIR/project/crates-pro/database/
rsync --delete --archive $MEGA_DIR/extensions/rust/common/model/ $INFRA_DIR/project/crates-pro/model/
### Step 1: Compile, then copy artifacts to $BUILD_DIR
cd $INFRA_DIR
buck2 build //project/crates-pro/import_tugraph:import_tugraph --out $BUILD_DIR/import_tugraph
Expand Down
Loading