From 53c0c4ea9d15346db0c8a3ab1bf064cb04988ebf Mon Sep 17 00:00:00 2001 From: RedxLus Date: Tue, 26 Jan 2021 19:38:05 +0100 Subject: [PATCH] Update cmake-windows.yml --- .github/workflows/cmake-windows.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cmake-windows.yml b/.github/workflows/cmake-windows.yml index ebcd1610..51148043 100644 --- a/.github/workflows/cmake-windows.yml +++ b/.github/workflows/cmake-windows.yml @@ -29,10 +29,6 @@ jobs: - shell: powershell run: refreshenv - - - name: Clone repos - shell: powershell - run: git clone https://github.com/xmrig/xmrig.git - shell: msys2 {0} run: | @@ -46,7 +42,18 @@ jobs: Get-Variable URL_Latest $URL_Latest = $URL_Latest -replace '"', "" Start-BitsTransfer -Source $URL_Latest -Destination "xmrig-deps.zip" - + + - name: Clone repos + shell: powershell + run: git clone https://github.com/xmrig/xmrig.git + + - name: Edit donate.h + shell: powershell + run: | + cd xmrig/src + (Get-Content donate.h).replace('constexpr const int kDefaultDonateLevel = 1', 'constexpr const int kDefaultDonateLevel = 0') | Set-Content donate.h + (Get-Content donate.h).replace('constexpr const int kMinimumDonateLevel = 1', 'constexpr const int kMinimumDonateLevel = 0') | Set-Content donate.h + - shell: msys2 {0} run: | unzip xmrig-deps.zip