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