File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CMake
2+
3+ on :
4+ push :
5+ branches : [ "testing" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ env :
10+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11+ BUILD_TYPE : Debug
12+
13+ jobs :
14+ build :
15+ # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
16+ # You can convert this to a matrix build if you need cross-platform coverage.
17+ # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
18+ runs-on : windows-latest
19+
20+ steps :
21+ - uses : actions/checkout@v3
22+ - name : Prepare env
23+ - run : |
24+ git submodule update --init --recursive
25+ cd vcpkg
26+ .\vcpkg\bootstrap-vcpkg.bat
27+ vcpkg install --triplet x64-windows zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli
28+
29+ - name : Configure CMake
30+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
31+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
32+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=$(pwd)/../vcpkg/scripts/buildsystems/vcpkg.cmake -DOPENSSL_ROOT_DIR=$(pwd)/../pcpkg/ports/openssl\*
33+
34+ - name : Build
35+ # Build your program with the given configuration
36+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
37+
38+ - name : Test
39+ working-directory : ${{github.workspace}}/build
40+ # Execute tests defined by the CMake configuration.
41+ # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
42+ run : ./test/testing
43+
You can’t perform that action at this time.
0 commit comments