Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/copilot-setup-steps.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Copilot Setup Steps

on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml

jobs:
copilot-setup-steps:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build liburing-dev clang-19 clang-tools-19 nodejs npm

- name: Configure CMake
run: cmake -B build -G Ninja -DBUILD_TESTS=ON -DPLEXDB_LOG_ENABLED=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++-19 -DCMAKE_C_COMPILER=clang-19

- name: Build
run: ninja -C build

- name: Install test_cql.js dependencies
run: npm install
working-directory: extra/node
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=clang++-19 \
-DCMAKE_C_COMPILER=clang-19 \
-DPLEXDB_DEBUG=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_SHARED_LIBS=OFF

Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ if(DISABLE_EXCEPTIONS)
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>" "$<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>")
endif()
endif()
if(PLEXDB_DEBUG)
add_compile_definitions(PLEXDB_DEBUG=1)
endif()
if(PLEXDB_LOG_ENABLED)
add_compile_definitions(PLEXDB_LOG_ENABLED=1)
endif()

# =============================================================================
# Build
Expand Down
2 changes: 1 addition & 1 deletion macros/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@

// utilities

#if !defined(PLEXDB_DEBUG)
#if defined(PLEXDB_DEBUG)
#define PLEXDB_DEBUG 1
#define PLEXDB_DEBUG_X(x) x
#else
Expand Down
15 changes: 12 additions & 3 deletions objstore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ if(OBJSTORE_IS_MAIN_PROJECT)
option(BUILD_TESTS "Build unit tests" ON)
option(OBJSTORE_BUILD_SERVER "Build objstore server" ON)
option(PLEXDB_LOG_ENABLED "Enable structured logging hooks" OFF)
option(PLEXDB_DEBUG "Build debug checks" ON)

add_subdirectory(../plexdb plexdb)
endif()

if(PLEXDB_LOG_ENABLED)
add_compile_definitions(PLEXDB_LOG_ENABLED=1)
if(PLEXDB_LOG_ENABLED)
add_compile_definitions(PLEXDB_LOG_ENABLED=1)
endif()
if(PLEXDB_DEBUG)
add_compile_definitions(PLEXDB_DEBUG=1)
endif()
endif()


# =============================================================================
# Third part dependencies
# =============================================================================
Expand Down Expand Up @@ -165,6 +170,10 @@ if(OBJSTORE_BUILD_SERVER)
plexdb::objstore
)

target_include_directories(objstore_server PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../macros
)

if(PLEXDB_LOG_ENABLED)
target_link_options(objstore_server PRIVATE -rdynamic)
endif()
Expand Down
Loading