Update cmake-windows.yml

This commit is contained in:
RedxLus 2021-01-25 20:38:35 +01:00
parent a9929b38db
commit 377bba2d43

View file

@ -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')) 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 - 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 - shell: powershell
run: refreshenv run: refreshenv
@ -42,6 +45,8 @@ jobs:
run: msys2 -c 'pacman -S mingw-w64-x86_64-gcc git make --noconfirm' run: msys2 -c 'pacman -S mingw-w64-x86_64-gcc git make --noconfirm'
- shell: powershell - shell: powershell
run: msys2 -c 'mkdir xmrig/build && cd xmrig/build' run: msys2 -c 'mkdir xmrig/build && cd xmrig/build'
- shell: powershell - shell: msys2 {0}
run: msys2 -c 'cmake .. -G "Unix Makefiles" -DXMRIG_DEPS=../../xmrig-deps/gcc/x64' run: |
uname -a
'C:\Program Files\CMake\bin\cmake.exe' .. -G "Unix Makefiles" -DXMRIG_DEPS=../../xmrig-deps/gcc/x64