Skip to content

Commit

Permalink
Merge pull request #1 from andrewerf/ci
Browse files Browse the repository at this point in the history
Add workflow.
  • Loading branch information
andrewerf authored Sep 14, 2024
2 parents 7c531be + be401ad commit 2c02ddb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/ubuntu24.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <boost/lockfree/queue.hpp>
#include <drogon/drogon.h>
#include <fmt/format.h>
#include <boost/program_options.hpp>
Expand Down

0 comments on commit 2c02ddb

Please sign in to comment.