-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into julien/store-v2-types
- Loading branch information
Showing
11 changed files
with
139 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuo pipefail | ||
|
||
if [ -z "$ROCKSDB_VERSION" ]; then | ||
echo "ROCKSDB_VERSION is not set." | ||
exit 1 | ||
fi | ||
|
||
# Update and install dependencies | ||
sudo apt update && sudo apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev build-essential | ||
|
||
# Clone RocksDB repository | ||
git clone https://github.com/facebook/rocksdb.git /home/runner/rocksdb | ||
cd /home/runner/rocksdb || exit 1 | ||
git checkout "v${ROCKSDB_VERSION}" | ||
|
||
# Build shared library | ||
sudo make -j "$(nproc --all)" shared_lib | ||
sudo cp --preserve=links ./librocksdb.* /usr/local/lib/ | ||
sudo cp -r ./include/rocksdb/ /usr/local/include/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.