Reenable cmake install step for Windows builds
Just skip using sudo under this OS, but still run "cmake install" as this is required for the final test, checking the installation success, to work.
This commit is contained in:
8
.github/workflows/ci_cmake.yml
vendored
8
.github/workflows/ci_cmake.yml
vendored
@@ -65,6 +65,7 @@ jobs:
|
||||
cmake_tests: OFF
|
||||
- name: Windows MSVC
|
||||
runner: windows-latest
|
||||
no_sudo: 1
|
||||
cmake_defines: -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe
|
||||
cmake_generator: Ninja
|
||||
cmake_samples: SOME
|
||||
@@ -129,10 +130,13 @@ jobs:
|
||||
cmake --build . -- $wxBUILD_ARGS
|
||||
|
||||
- name: Installing
|
||||
if: runner.os != 'Windows'
|
||||
working-directory: build_cmake
|
||||
run: |
|
||||
sudo cmake --build . --target install
|
||||
if [ -z "${{ matrix.no_sudo }}" ]; then
|
||||
sudo cmake --build . --target install
|
||||
else
|
||||
cmake --build . --target install
|
||||
fi
|
||||
|
||||
- name: Testing
|
||||
if: matrix.cmake_tests != 'OFF'
|
||||
|
||||
Reference in New Issue
Block a user