From 377bba2d43965d4d71a88acc76b973d5f5d59974 Mon Sep 17 00:00:00 2001 From: RedxLus Date: Mon, 25 Jan 2021 20:38:35 +0100 Subject: [PATCH] Update cmake-windows.yml --- .github/workflows/cmake-windows.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake-windows.yml b/.github/workflows/cmake-windows.yml index dd47ca66..2735ac83 100644 --- a/.github/workflows/cmake-windows.yml +++ b/.github/workflows/cmake-windows.yml @@ -23,7 +23,10 @@ jobs: run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) - shell: powershell - run: choco install cmake --installargs 'ADD_CMAKE_TO_PATH=User' + run: choco feature enable -n allowGlobalConfirmation + + - shell: powershell + run: choco install cmake -y --installargs 'ADD_CMAKE_TO_PATH=System' - shell: powershell run: refreshenv @@ -42,6 +45,8 @@ jobs: run: msys2 -c 'pacman -S mingw-w64-x86_64-gcc git make --noconfirm' - shell: powershell run: msys2 -c 'mkdir xmrig/build && cd xmrig/build' - - shell: powershell - run: msys2 -c 'cmake .. -G "Unix Makefiles" -DXMRIG_DEPS=../../xmrig-deps/gcc/x64' + - shell: msys2 {0} + run: | + uname -a + 'C:\Program Files\CMake\bin\cmake.exe' .. -G "Unix Makefiles" -DXMRIG_DEPS=../../xmrig-deps/gcc/x64