Skip to content

Commit 2bb82c1

Browse files
committed
build static RocksDB from source
1 parent 5b22b83 commit 2bb82c1

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,25 @@ jobs:
2121
with:
2222
go-version: '1.23'
2323

24+
- name: Cache RocksDB
25+
id: cache-rocksdb
26+
uses: actions/cache@v3
27+
with:
28+
path: /tmp/rocksdb
29+
key: rocksdb-portable-10.5.1
30+
31+
- name: Build RocksDB
32+
if: steps.cache-rocksdb.outputs.cache-hit != 'true'
33+
run: |
34+
cd /tmp
35+
git clone --depth 1 --branch v10.5.1 https://github.com/facebook/rocksdb.git
36+
cd rocksdb
37+
PORTABLE=1 make static_lib -j$(nproc)
38+
2439
- name: Install RocksDB
25-
run: sudo apt-get update && sudo apt-get install -y librocksdb-dev
40+
run: |
41+
cd /tmp/rocksdb
42+
sudo make install-static
2643
2744
- name: Build
2845
run: CGO_ENABLED=1 go build -v ./...

0 commit comments

Comments
 (0)