diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 6dff12a8199..234f32ea2bd 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -23,6 +23,7 @@ jobs: OPENDAL_FS_ROOT: /tmp/opendal/ - name: Store benchmark result + if: github.repository_owner == 'datafuselabs' uses: benchmark-action/github-action-benchmark@v1 with: name: Rust Benchmark diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 7f1bf6cfc13..c4484e68122 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -36,7 +36,7 @@ jobs: cp -r ./target/doc/* ./target/book - name: Deploy to vercel - if: github.ref_name == 'main' + if: github.repository_owner == 'datafuselabs' && github.ref_name == 'main' uses: amondnet/vercel-action@v25.1.1 with: vercel-token: ${{ secrets.VERCEL_TOKEN }} @@ -48,7 +48,7 @@ jobs: working-directory: ./target/book - name: Deploy to vercel (preview) - if: github.ref_name != 'main' + if: github.repository_owner == 'datafuselabs' && github.ref_name != 'main' uses: amondnet/vercel-action@v25.1.1 with: vercel-token: ${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/service_test_ipmfs.yml b/.github/workflows/service_test_ipmfs.yml index 0dc77863f86..44f139f752e 100644 --- a/.github/workflows/service_test_ipmfs.yml +++ b/.github/workflows/service_test_ipmfs.yml @@ -17,14 +17,13 @@ concurrency: jobs: ipmfs: runs-on: ubuntu-latest + services: + ipfs: + image: ipfs/go-ipfs:v0.14.0 + ports: + - 5001:5001 steps: - uses: actions/checkout@v3 - - name: Set up IPFS ${{ matrix.ipfs }} - uses: ibnesayeed/setup-ipfs@b9b9f7d73db5f77d462225bb37dbd51153351dd9 - id: ipfs_setup - with: - ipfs_version: "v0.14.0" - run_daemon: true - uses: Swatinem/rust-cache@v2 - name: Test shell: bash diff --git a/.github/workflows/service_test_redis.yml b/.github/workflows/service_test_redis.yml index f870e11cc9f..818d232e41f 100644 --- a/.github/workflows/service_test_redis.yml +++ b/.github/workflows/service_test_redis.yml @@ -17,11 +17,13 @@ concurrency: jobs: redis: runs-on: ubuntu-latest + services: + redis: + image: redis + ports: + - 6379:6379 steps: - uses: actions/checkout@v3 - - uses: shogo82148/actions-setup-redis@v1 - with: - redis-version: "6.x" - uses: Swatinem/rust-cache@v2 - name: Test shell: bash diff --git a/Cargo.toml b/Cargo.toml index c378c0e92a7..750176da39a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -141,7 +141,7 @@ reqwest = { version = "0.11.13", features = [ "multipart", "stream", ], default-features = false } -rocksdb = { version = "0.19", optional = true } +rocksdb = { version = "0.19", default-features = false, optional = true } serde = { version = "1", features = ["derive"] } serde_json = "1" suppaftp = { version = "4.5", default-features = false, features = [ diff --git a/src/services/rocksdb/backend.rs b/src/services/rocksdb/backend.rs index 9f0a3d85be4..4ac0a2cb309 100644 --- a/src/services/rocksdb/backend.rs +++ b/src/services/rocksdb/backend.rs @@ -30,7 +30,7 @@ use crate::*; pub struct Builder { /// The path to the rocksdb data directory. datadir: Option, - /// the working directory of the Redis service. Can be "/path/to/dir" + /// the working directory of the service. Can be "/path/to/dir" /// /// default is "/" root: Option,