diff --git a/.github/workflows/ubuntu24.yml b/.github/workflows/ubuntu24.yml new file mode 100644 index 0000000..80704eb --- /dev/null +++ b/.github/workflows/ubuntu24.yml @@ -0,0 +1,37 @@ +name: Ubuntu24.04 + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-24.04 + steps: + + - uses: actions/checkout@v4 + with: + submodules: recursive + + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: g++ cmake make libjsoncpp-dev libc-ares-dev libspdlog-dev uuid-dev libz-dev libssl-dev + execute_install_scripts: true + + - run: sudo apt install -yq libboost-program-options-dev + + - name: Build + run: | + cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 4 + + - uses: actions/upload-artifact@v4 + with: + name: simple_inference_server + path: ${{github.workspace}}/build/simple_inference_server + if-no-files-found: error diff --git a/CMakeLists.txt b/CMakeLists.txt index e6037e5..6668592 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,8 @@ set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build drogon as a shared lib") set(USE_SPDLOG ON CACHE BOOL "Use spdlog") set(BUILD_BROTLI OFF CACHE BOOL "Build Brotli") set(BUILD_YAML_CONFIG OFF CACHE BOOL "Build yaml config") +option(BUILD_EXAMPLES "Build examples" OFF) +option(BUILD_CTL "Build drogon_ctl" OFF) add_subdirectory(3rdparty/drogon) set(Boost_USE_STATIC_LIBS ON) diff --git a/main.cpp b/main.cpp index c97a81b..310496c 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,3 @@ -#include #include #include #include