Skip to content

Commit

Permalink
Add RocksDB build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Oct 5, 2024
1 parent ae7b171 commit c7603c5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/ci.linux.arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,3 @@ jobs:
run: |
cd build
ctest -E test-lockfree --timeout 3600 -V
gcc921-build-debug:
runs-on: [self-hosted, Linux, ARM64]

container:
image: ghcr.io/coldwings/photon-ut-base:latest
options: --cpus 4

steps:
- uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"

- uses: actions/checkout@v4

- name: Build
run: |
source /opt/rh/gcc-toolset-9/enable
cmake -B build \
-D CMAKE_BUILD_TYPE=Debug \
-D PHOTON_ENABLE_ECOSYSTEM=ON \
-D PHOTON_BUILD_TESTING=ON \
-D PHOTON_ENABLE_SASL=ON \
-D PHOTON_ENABLE_FUSE=ON \
-D PHOTON_ENABLE_EXTFS=ON
cmake --build build -j $(nproc) -- VERBOSE=1
19 changes: 19 additions & 0 deletions .github/workflows/ci.linux.x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,22 @@ jobs:
-D PHOTON_BUILD_TESTING=ON \
-D PHOTON_ENABLE_FSTACK_DPDK=ON
cmake --build build -j $(nproc) -t fstack-dpdk-demo
RocksDB:
runs-on: ubuntu-latest
container:
image: almalinux:8
options: --cpus 4 --privileged
steps:
- uses: actions/checkout@v4
- name: Build
run: |
dnf install -y gcc-c++ cmake openssl-devel libcurl-devel libaio-devel zlib-devel epel-release
dnf config-manager --set-enabled powertools
dnf install -y gflags-devel snappy-devel zlib-devel bzip2-devel lz4-devel libzstd-devel
git clone -b photon-on-6.1.2 https://github.com/data-accelerator/rocksdb.git
cd rocksdb
./photon-auto-convert.sh
cmake -B build -D WITH_TESTS=on -D INIT_PHOTON_IN_ENV=on -D WITH_LZ4=on -D WITH_SNAPPY=on \
-D CMAKE_BUILD_TYPE=Debug
cmake --build build -j `nproc`

0 comments on commit c7603c5

Please sign in to comment.