File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Linux
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ build :
8+ runs-on : ${{ matrix.os }}
9+ strategy :
10+ matrix :
11+ os : [ubuntu-20.04]
12+ architecture : ["x64"]
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+ - name : Set up APT
17+ if : ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04' }}
18+ run : |
19+ sudo apt-get update -y
20+ sudo apt-get -y install g++ cmake-data cmake ninja-build libzmq3-dev liblog4cxx-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev libboost-date-time-dev libboost-program-options-dev libcurl4-openssl-dev
21+ - name : Install RapidJSON
22+ run : |
23+ set -e
24+ git clone https://github.com/Tencent/rapidjson.git && mkdir rapidjson/build
25+ cd rapidjson/build
26+ # there are no stable version available
27+ cmake .. -GNinja -DRAPIDJSON_HAS_STDSTRING=ON -DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF -DRAPIDJSON_BUILD_TESTS=OFF
28+ ninja -j4 && sudo ninja install
29+ cd ../..
30+ - name : Install
31+ run : |
32+ set -e
33+ mkdir -p build
34+ cd build
35+ cmake .. -GNinja -DOPT_SAMPLES=OFF -DOPT_BUILD_TESTS=OFF
36+ ninja -j4 && sudo ninja install
37+ cd ..
Original file line number Diff line number Diff line change 1+ name : Build Windows
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ build :
8+ runs-on : ${{ matrix.os }}
9+ strategy :
10+ matrix :
11+ os : [windows-2022]
12+ architecture : ["x64"]
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+ - uses : microsoft/setup-msbuild@v1.1
17+ - name : Set up Boost
18+ run : |
19+ choco install boost-msvc-14.3 -f -y
20+ - name : Set up curl
21+ run : |
22+ curl -O -L https://curl.se/windows/dl-8.5.0_1/curl-8.5.0_1-win64-mingw.zip
23+ 7z x -y curl-8.5.0_1-win64-mingw.zip
24+ - name : Install RapidJSON
25+ run : |
26+ git clone https://github.com/Tencent/rapidjson.git && mkdir rapidjson\build
27+ cd rapidjson\build
28+ # there are no stable version available
29+ # but take the last version without -targets.cmake
30+ git checkout 516d0473949fdcf0a6dc9fbb40fa92b3b85db184
31+ cmake .. -G 'Visual Studio 17 2022' -A x64 -DRAPIDJSON_HAS_STDSTRING=ON -DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF -DRAPIDJSON_BUILD_TESTS=OFF
32+ msbuild ALL_BUILD.vcxproj /p:Configuration=Release
33+ cd ..\..
34+ - name : Install libzmq
35+ run : |
36+ git clone https://github.com/zeromq/libzmq.git && mkdir libzmq\build
37+ cd libzmq\build
38+ git checkout v4.3.5
39+ cmake .. -G 'Visual Studio 17 2022' -A x64 -DBUILD_TESTS=OFF
40+ msbuild ALL_BUILD.vcxproj /p:Configuration=Release
41+ cd ..\..
42+ - name : Install
43+ run : |
44+ mkdir -p build
45+ cd build
46+ cmake .. -G 'Visual Studio 17 2022' -A x64 -DCMAKE_CXX_STANDARD=11 "-DZeroMQ_DIR=${PWD}\..\libzmq\build" "-DCURL_INCLUDE_DIR=${PWD}\..\curl-8.5.0_1-win64-mingw\include" "-DCURL_LIBRARY=${PWD}\..\curl-8.5.0_1-win64-mingw\lib\libcurl.dll.a" -DCMAKE_CONFIGURATION_TYPES=Release -DOPT_SAMPLES=OFF -DOPT_BUILD_TESTS=OFF
47+ msbuild ALL_BUILD.vcxproj /p:Configuration=Release
48+ cd ..
You can’t perform that action at this time.
0 commit comments