CI: use the rocksdb package instead of building it
With the version pin gone the rocksdb of the distribution can be installed as
a package, which removes the rocksdb build, its cache and its artifacts from
the pipeline. Verified with librocksdb-dev 7.8.3 of the gcc image: builds
without warnings and ctest passes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: Ibd752052d0da5eb3344157dbede32961c964c40f
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a888765..4c9495f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,36 +2,15 @@
build-and-test:
stage: build
- cache:
- - key: one-key-to-rule-them-all
- paths:
- - rocksdb-5.11.3/
before_script:
- pwd
- source `find .. -name section_helper.sh`
- start_section install_linux_packages "Installing missing Linux packages"
- - apt update && apt -y install cmake libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libomp-dev
+ - apt update && apt -y install cmake librocksdb-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libomp-dev
- end_section install_linux_packages
script:
- - start_section install_rocksdb "Building and installing rocksdb"
- - git clone https://github.com/kupietz/rocksdb.git -b 5.11.fb --single-branch
- - cd rocksdb
- - export PROCS=$(nproc)
- - make -j $PROCS static_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- - make install-static DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- - strip --strip-unneeded `find -name librocksdb.a`
- - end_section install_rocksdb_static
-
- - start_section install_rocksdb_shared "Building and installing rocksdb-shared"
- - make -j $PROCS shared_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- - make install-shared DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- - strip --strip-unneeded `find -name librocksdb.so`
- - ldconfig
- - cd ..
- - end_section install_rocksdb
-
- start_section install_collocatordb "Building and installing collocatordb"
- mkdir -p build
- cd build
@@ -46,7 +25,5 @@
artifacts:
paths:
- - "rocksdb-5.11.3/*.so*"
- - "rocksdb-5.11.3/*.a"
- "build/libcollocatordb.so*"
- "build/libcollocatordb*.a"