Skip to content

Commit 1bf15aa

Browse files
committed
try to fix tests
1 parent cd03a3e commit 1bf15aa

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
rustup-components: rustfmt
2323
target: ${{ matrix.target }}
2424
manylinux: musllinux_1_2
25-
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
25+
args: --release --no-default-features --features bindgen-static --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
2626
container: congyuwang/musllinux_1_2_x86_64:llvm-19.1.3
2727
before-script-linux: |
2828
apk update
@@ -46,7 +46,7 @@ jobs:
4646
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_x86_64:llvm-19.1.3 bash -c "
4747
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
4848
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
49-
python -m unittest discover -v /test"
49+
python3.12 -m unittest discover -v /test"
5050
- name: Upload artifacts
5151
uses: actions/upload-artifact@v4
5252
with:
@@ -70,7 +70,7 @@ jobs:
7070
rustup-components: rustfmt
7171
target: ${{ matrix.target }}
7272
manylinux: musllinux_1_2
73-
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
73+
args: --release --no-default-features --features bindgen-static --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
7474
container: congyuwang/musllinux_1_2_aarch64:llvm-19.1.3
7575
before-script-linux: |
7676
apk update
@@ -94,7 +94,7 @@ jobs:
9494
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_aarch64:llvm-19.1.3 bash -c "
9595
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
9696
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
97-
python -m unittest discover -v /test"
97+
python3.12 -m unittest discover -v /test"
9898
- name: Upload artifacts
9999
uses: actions/upload-artifact@v4
100100
with:

.github/workflows/PR.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
rustup-components: rustfmt
2323
target: ${{ matrix.target }}
2424
manylinux: musllinux_1_2
25-
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
25+
args: --release --no-default-features --features bindgen-static --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
2626
container: congyuwang/musllinux_1_2_x86_64:llvm-19.1.3
2727
before-script-linux: |
2828
apk update
@@ -46,7 +46,7 @@ jobs:
4646
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_x86_64:llvm-19.1.3 bash -c "
4747
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
4848
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
49-
python -m unittest discover -v /test"
49+
python3.12 -m unittest discover -v /test"
5050
- name: Upload artifacts
5151
uses: actions/upload-artifact@v4
5252
with:
@@ -70,7 +70,7 @@ jobs:
7070
rustup-components: rustfmt
7171
target: ${{ matrix.target }}
7272
manylinux: musllinux_1_2
73-
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
73+
args: --release --no-default-features --features bindgen-static --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10'
7474
container: congyuwang/musllinux_1_2_aarch64:llvm-19.1.3
7575
before-script-linux: |
7676
apk update
@@ -94,7 +94,7 @@ jobs:
9494
docker run --rm -v ${{ github.workspace }}/dist:/dist:ro -v ${{ github.workspace }}/test:/test:ro congyuwang/musllinux_1_2_aarch64:llvm-19.1.3 bash -c "
9595
python3.12 -m pip install rocksdict --no-index --find-links /dist --force-reinstall || true
9696
python3.12 -m pip install speedict --no-index --find-links /dist --force-reinstall || true
97-
python -m unittest discover -v /test"
97+
python3.12 -m unittest discover -v /test"
9898
- name: Upload artifacts
9999
uses: actions/upload-artifact@v4
100100
with:

Cargo.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,24 @@ path = "bin/create-cf-db/main.rs"
1616
test = false
1717

1818
[dependencies]
19-
rocksdb = { path = "rust-rocksdb" }
19+
rocksdb = { path = "rust-rocksdb", default-features = false, features = [
20+
"snappy",
21+
"lz4",
22+
"zstd",
23+
"zlib",
24+
"bzip2",
25+
] }
2026
librocksdb-sys = { path = "rust-rocksdb/librocksdb-sys" }
2127
serde = { version = "1", features = ["derive"] }
2228
serde_json = "1"
2329
num-bigint = "0.4"
2430
libc = "0.2"
2531

32+
[features]
33+
default = ["bindgen-runtime"]
34+
bindgen-runtime = ["rocksdb/bindgen-runtime"]
35+
bindgen-static = ["rocksdb/bindgen-static"]
36+
2637
[dependencies.pyo3]
2738
version = "0.22"
2839
features = ["py-clone", "extension-module", "num-bigint"]

rust-rocksdb

0 commit comments

Comments
 (0)