File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Module Tests (Windows)
2+
3+ on :
4+ push :
5+ paths :
6+ - ' modules/**'
7+ - ' thirdParty/**'
8+ - ' .github/workflows/Tests_Windows.yml'
9+ pull_request :
10+ paths :
11+ - ' modules/**'
12+ - ' thirdParty/**'
13+
14+ jobs :
15+ test-windows :
16+ runs-on : windows-latest
17+
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v3
21+
22+ - name : Fetch base64.cpp
23+ run : |
24+ mkdir thirdParty\base64
25+ curl -L https://raw.githubusercontent.com/ReneNyffenegger/cpp-base64/82147d6d89636217b870f54ec07ddd3e544d5f69/base64.cpp -o thirdParty\base64\base64.cpp
26+
27+ - name : Fetch module dependencies
28+ run : |
29+ cd modules
30+ mkdir ModuleCmd\nlohmann
31+ curl -o ModuleCmd\nlohmann\json.hpp https://raw.githubusercontent.com/maxDcb/C2TeamServer/refs/heads/master/thirdParty/nlohmann/json.hpp
32+ curl -o ModuleCmd\base64.h https://raw.githubusercontent.com/ReneNyffenegger/cpp-base64/82147d6d89636217b870f54ec07ddd3e544d5f69/base64.h
33+
34+ - name : Configure with CMake
35+ run : |
36+ cd modules
37+ mkdir build
38+ cd build
39+ cmake -DWITH_TESTS=ON ..
40+
41+ - name : Build
42+ run : |
43+ cd modules\build
44+ cmake --build . --config Release
45+
46+ - name : Run tests
47+ run : |
48+ cd modules\build
49+ ctest -C Release --output-on-failure
You can’t perform that action at this time.
0 commit comments