File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1919 - name : Checkout repository
2020 uses : actions/checkout@v3
2121
22+ - name : Add msbuild to PATH
23+ 24+ with :
25+ msbuild-architecture : x64
26+
2227 - name : Fetch base64.cpp
2328 run : |
2429 mkdir thirdParty\base64
@@ -31,19 +36,14 @@ jobs:
3136 curl -o ModuleCmd\nlohmann\json.hpp https://raw.githubusercontent.com/maxDcb/C2TeamServer/refs/heads/master/thirdParty/nlohmann/json.hpp
3237 curl -o ModuleCmd\base64.h https://raw.githubusercontent.com/ReneNyffenegger/cpp-base64/82147d6d89636217b870f54ec07ddd3e544d5f69/base64.h
3338
34- - name : Configure with CMake
39+ - name : Configure CMake for tests
3540 run : |
36- cd modules
37- mkdir build
38- cd build
39- cmake -DWITH_TESTS=ON ..
41+ cmake -G "Visual Studio 17 2022" -B ${{github.workspace}}\modules\build -DWITH_TESTS=ON
4042
41- - name : Build
43+ - name : Build modules with tests
4244 run : |
43- cd modules\build
44- cmake --build . --config Release
45+ cmake --build ${{github.workspace}}\modules\build --config Release --parallel
4546
46- - name : Run tests
47+ - name : Run unit tests
4748 run : |
48- cd modules\build
49- ctest -C Release --output-on-failure
49+ ctest --test-dir modules\build -C Release
You can’t perform that action at this time.
0 commit comments