File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 21
21
run : |
22
22
python3 -m venv venv && . ./venv/bin/activate
23
23
pip install -U setuptools wheel pip conan==2.5.0
24
- mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ..
24
+ mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DZSWAG_ENABLE_TESTING=ON ..
25
25
- name : Build
26
26
working-directory : build
27
27
run : |
73
73
cmake -DPython3_ROOT_DIR=$pythonLocation \
74
74
-DPython3_FIND_FRAMEWORK=LAST \
75
75
-DCMAKE_BUILD_TYPE=Release \
76
- -DHTTPLIB_USE_BROTLI_IF_AVAILABLE=OFF ..
76
+ -DHTTPLIB_USE_BROTLI_IF_AVAILABLE=OFF \
77
+ -DZSWAG_ENABLE_TESTING=ON ..
77
78
cmake --build .
78
79
mv bin/wheel bin/wheel-auditme # Same as on Linux
79
80
mkdir bin/wheel && mv bin/wheel-auditme/zswag*.whl bin/wheel
85
86
working-directory : build
86
87
run : |
87
88
echo "cmake -DPython3_ROOT_DIR=$env:pythonLocation"
88
- cmake "-DPython3_ROOT_DIR=$env:pythonLocation" -DPython3_FIND_REGISTRY=LAST -DHTTPLIB_USE_ZLIB_IF_AVAILABLE=OFF -DCMAKE_BUILD_TYPE=Release ..
89
+ cmake "-DPython3_ROOT_DIR=$env:pythonLocation" -DPython3_FIND_REGISTRY=LAST -DCMAKE_BUILD_TYPE=Release -DZSWAG_ENABLE_TESTING=ON ..
89
90
cmake --build . --config Release
90
91
- name : Deploy
91
92
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ option(ZSWAG_KEYCHAIN_SUPPORT "Enable zswag keychain support." ON)
30
30
option (ZSWAG_ENABLE_TESTING "Enable testing for the project" OFF )
31
31
32
32
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR )
33
+ message (STATUS "Testing will be enabled as zswag is the top-level project." )
33
34
set (ZSWAG_ENABLE_TESTING ON CACHE BOOL "By default, enable testing if this is the main project" )
34
35
endif ()
35
36
You can’t perform that action at this time.
0 commit comments