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
7 changes: 7 additions & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ inputs:
description: "This setup needs rocksdb or not"
need-nextest:
description: "This setup needs nextest or not"
need-protoc:
description: "This setup needs protoc or not"

runs:
using: "composite"
Expand All @@ -39,6 +41,11 @@ runs:
# Enable sparse index
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV

- name: Setup protoc on linux
if: inputs.need-protoc == 'true' && runner.os == 'Linux'
shell: bash
run: sudo apt install -y protobuf-compiler

- name: Cache nextest on linux
id: cache-nextest
uses: actions/cache@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
uses: ./.github/actions/setup
with:
need-rocksdb: true
need-protoc: true

- name: Checkout python env
uses: actions/setup-python@v4
Expand All @@ -83,6 +84,7 @@ jobs:
uses: ./.github/actions/setup
with:
need-rocksdb: true
need-protoc: true

- name: Checkout python env
uses: actions/setup-python@v4
Expand Down Expand Up @@ -145,6 +147,7 @@ jobs:
uses: ./.github/actions/setup
with:
need-rocksdb: true
need-protoc: true

- name: Build
run: cargo build --all-features
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
uses: ./.github/actions/setup
with:
need-rocksdb: true
need-protoc: true

- uses: actions/setup-java@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
with:
distribution: temurin
java-version: "11"

- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-rocksdb: true
need-protoc: true

- name: Publish opendal
working-directory: "core"
Expand Down
1 change: 1 addition & 0 deletions core/src/services/oss/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ use crate::*;

const DEFAULT_WRITE_MIN_SIZE: usize = 8 * 1024 * 1024;
const DEFAULT_BATCH_MAX_OPERATIONS: usize = 1000;

/// Aliyun Object Storage Service (OSS) support
#[doc = include_str!("docs.md")]
#[derive(Default)]
Expand Down