Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Improve rocksdb build speed by link dynamic libs #1502

Merged
merged 7 commits into from
Mar 8, 2023
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
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,22 @@ jobs:
with:
hdfs-version: "3.3.2"

- name: Install rocksdb
run: sudo apt install librocksdb-dev

- uses: Swatinem/rust-cache@v2

- name: Check license headers
uses: korandoru/hawkeye@v1
- name: Cargo format
run: cargo fmt --all -- --check
- name: Cargo clippy
env:
ROCKSDB_LIB_DIR: /usr/lib
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
- name: Cargo doc
env:
ROCKSDB_LIB_DIR: /usr/lib
run: cargo doc --lib --no-deps --all-features

msrv_check:
Expand Down Expand Up @@ -126,9 +133,13 @@ jobs:
uses: beyondstorage/setup-hdfs@master
with:
hdfs-version: "3.3.2"
- name: Install rocksdb
run: sudo apt install librocksdb-dev

- uses: Swatinem/rust-cache@v2
- name: Build
env:
ROCKSDB_LIB_DIR: /usr/lib
run: cargo build --all-features

unit:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ jobs:
distribution: temurin
java-version: '11'

- name: Install rocksdb
run: sudo apt install librocksdb-dev

- uses: Swatinem/rust-cache@v2

- uses: actions-rs/cargo@v1
with:
command: doc
args: --lib --no-deps --all-features -p opendal
env:
LD_LIBRARY_PATH: ${{ env.JAVA_HOME }}/lib/server:${{ env.LD_LIBRARY_PATH }}
ROCKSDB_LIB_DIR: /usr/lib

- name: Copy vercel.json
run: cp ./vercel.json ./target/doc
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/service_test_rocksdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rocksdb
run: sudo apt install librocksdb-dev
- uses: Swatinem/rust-cache@v2
- name: Test
shell: bash
run: cargo test rocksdb --features services-rocksdb -- --show-output --test-threads=1
env:
ROCKSDB_LIB_DIR: /usr/lib
RUST_BACKTRACE: full
RUST_LOG: debug
OPENDAL_ROCKSDB_TEST: on
Expand Down
Loading