Skip to content

Commit 2c02ddb

Browse files
authored
Merge pull request #1 from andrewerf/ci
Add workflow.
2 parents 7c531be + be401ad commit 2c02ddb

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.github/workflows/ubuntu24.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Ubuntu24.04
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- uses: awalsh128/cache-apt-pkgs-action@latest
22+
with:
23+
packages: g++ cmake make libjsoncpp-dev libc-ares-dev libspdlog-dev uuid-dev libz-dev libssl-dev
24+
execute_install_scripts: true
25+
26+
- run: sudo apt install -yq libboost-program-options-dev
27+
28+
- name: Build
29+
run: |
30+
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
31+
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 4
32+
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: simple_inference_server
36+
path: ${{github.workspace}}/build/simple_inference_server
37+
if-no-files-found: error

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build drogon as a shared lib")
99
set(USE_SPDLOG ON CACHE BOOL "Use spdlog")
1010
set(BUILD_BROTLI OFF CACHE BOOL "Build Brotli")
1111
set(BUILD_YAML_CONFIG OFF CACHE BOOL "Build yaml config")
12+
option(BUILD_EXAMPLES "Build examples" OFF)
13+
option(BUILD_CTL "Build drogon_ctl" OFF)
1214
add_subdirectory(3rdparty/drogon)
1315

1416
set(Boost_USE_STATIC_LIBS ON)

main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <boost/lockfree/queue.hpp>
21
#include <drogon/drogon.h>
32
#include <fmt/format.h>
43
#include <boost/program_options.hpp>

0 commit comments

Comments
 (0)