mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-15 04:25:27 +00:00
e35747a5f5
* Make rocksdb configurable (#1658)
* Make rocksdb configurable
* Make sure rocksdb tests are running in CI
* Updating ci-rocksdb-build workflow
* Remove test.sh
* Update tm-db dependency
(cherry picked from commit 90fbe1aad7
)
* Rocksdb Metrics (#1692)
* Rocksdb Metrics
* Add rocksdb namespace for options
* Adding help to the metrics
* CR's fixes
* CR's fixes
* CR's fixes
* Increase number of options to configure rocksdb (#1696)
---------
Co-authored-by: Evgeniy Scherbina <evgeniy.shcherbina.es@gmail.com>
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Continuous Integration (Rocksdb Build)
|
|
|
|
env:
|
|
ROCKSDB_VERSION: v8.1.1
|
|
|
|
on:
|
|
workflow_call:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo from current commit
|
|
uses: actions/checkout@v3
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "1.20"
|
|
check-latest: true
|
|
cache: true
|
|
- name: build rocksdb dependency
|
|
run: bash ${GITHUB_WORKSPACE}/.github/scripts/install-rocksdb.sh
|
|
- name: build application
|
|
run: make build COSMOS_BUILD_OPTIONS=rocksdb
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: install RocksDB dependencies
|
|
run: sudo apt-get update
|
|
&& sudo apt-get install -y git make gcc libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
|
|
- name: install RocksDB as shared library
|
|
run: git clone https://github.com/facebook/rocksdb.git
|
|
&& cd rocksdb
|
|
&& git checkout $ROCKSDB_VERSION
|
|
&& sudo make -j$(nproc) install-shared
|
|
&& sudo ldconfig
|
|
- name: checkout repo from current commit
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "1.20"
|
|
check-latest: true
|
|
cache: true
|
|
- name: run unit tests
|
|
run: make test-rocksdb
|