From 9d691af3b405963354d45965b12d16c4acd4b275 Mon Sep 17 00:00:00 2001 From: RedxLus Date: Tue, 26 Jan 2021 12:30:43 +0100 Subject: [PATCH] Update cmake-windows.yml --- .github/workflows/cmake-windows.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cmake-windows.yml b/.github/workflows/cmake-windows.yml index f33ca0b9..de78bc04 100644 --- a/.github/workflows/cmake-windows.yml +++ b/.github/workflows/cmake-windows.yml @@ -7,14 +7,13 @@ jobs: install: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - name: Install GIT shell: powershell run: Install-Module posh-git -Scope CurrentUser -Force - - name: Install choco + - name: Install CHOCOLATERY shell: powershell 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')) @@ -32,32 +31,28 @@ jobs: - shell: powershell run: refreshenv - + - name: Clone repos shell: powershell run: git clone https://github.com/xmrig/xmrig.git - - shell: powershell + + - shell: msys2 {0} + run: | + pacman -Syu --noconfirm + pacman -S mingw-w64-x86_64-gcc git make unzip --noconfirm + + - name: Download the latest release of the dependencies. + shell: powershell run: | $URL_Latest = Invoke-WebRequest -Uri https://api.github.com/repos/xmrig/xmrig-deps/releases/latest | Select-Object -Expand Content | jq '.zipball_url' Get-Variable URL_Latest $URL_Latest = $URL_Latest -replace '"', "" - Start-BitsTransfer -Source $URL_Latest -Destination "xmrig-deps.zip" - + Start-BitsTransfer -Source $URL_Latest -Destination "xmrig-deps.zip" + - shell: msys2 {0} run: | - pacman -S unzip unzip xmrig-deps.zip mv xmrig-xmrig* xmrig-deps - - - shell: powershell - run: Invoke-WebRequest -Uri https://api.github.com/repos/xmrig/xmrig-deps/releases/latest | Select-Object -Expand Content | jq '.zipball_url' - - - uses: msys2/setup-msys2@v2 - - - shell: msys2 {0} - run: | - pacman -Syu --noconfirm - pacman -S mingw-w64-x86_64-gcc git make --noconfirm mkdir xmrig/build cd xmrig/build ls