mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Module Tests (Windows)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'modules/**'
|
|
- 'thirdParty/**'
|
|
- '.github/workflows/Tests_Windows.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'modules/**'
|
|
- 'thirdParty/**'
|
|
|
|
jobs:
|
|
test-windows:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Fetch base64.cpp
|
|
run: |
|
|
mkdir thirdParty\base64
|
|
curl -L https://raw.githubusercontent.com/ReneNyffenegger/cpp-base64/82147d6d89636217b870f54ec07ddd3e544d5f69/base64.cpp -o thirdParty\base64\base64.cpp
|
|
|
|
- name: Fetch module dependencies
|
|
run: |
|
|
cd modules
|
|
mkdir ModuleCmd\nlohmann
|
|
curl -o ModuleCmd\nlohmann\json.hpp https://raw.githubusercontent.com/maxDcb/C2TeamServer/refs/heads/master/thirdParty/nlohmann/json.hpp
|
|
curl -o ModuleCmd\base64.h https://raw.githubusercontent.com/ReneNyffenegger/cpp-base64/82147d6d89636217b870f54ec07ddd3e544d5f69/base64.h
|
|
|
|
- name: Configure with CMake
|
|
run: |
|
|
cd modules
|
|
mkdir build
|
|
cd build
|
|
cmake -DWITH_TESTS=ON ..
|
|
|
|
- name: Build
|
|
run: |
|
|
cd modules\build
|
|
cmake --build . --config Release
|
|
|
|
- name: Run tests
|
|
run: |
|
|
cd modules\build
|
|
ctest -C Release --output-on-failure
|