From 724114e342555fbfb6c4239df341d8a786cd7402 Mon Sep 17 00:00:00 2001 From: aiwe Date: Mon, 22 Mar 2021 12:25:30 +0200 Subject: [PATCH] Alternative way to install boost on Windows --- .github/workflows/check.yml | 11 ++++------- .github/workflows/release.yml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3d9824a6c4..4253953e90 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,14 +24,11 @@ jobs: uses: microsoft/setup-msbuild@v1.0.2 - name: Install Boost - shell: cmd + shell: powershell run: | - choco install wget --no-progress - wget -nv -O boost-installer.exe "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe/download" - boost-installer.exe /dir=%BOOST_ROOT% /sp- /verysilent /suppressmsgboxes /norestart - - - name: Install OpenSSL - run: choco install openssl + $Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe" + (New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost-installer.exe") + Start-Process -Wait -FilePath "$env:TEMP\boost-installer.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=$env:BOOST_ROOT" - name: Build shell: powershell diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aee63ff15c..fc0b8a496b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,14 +21,11 @@ jobs: uses: microsoft/setup-msbuild@v1.0.2 - name: Install Boost - shell: cmd + shell: powershell run: | - choco install wget --no-progress - wget -nv -O boost-installer.exe "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe/download" - boost-installer.exe /dir=%BOOST_ROOT% /sp- /verysilent /suppressmsgboxes /norestart - - - name: Install OpenSSL - run: choco install openssl + $Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe" + (New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost-installer.exe") + Start-Process -Wait -FilePath "$env:TEMP\boost-installer.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=$env:BOOST_ROOT" - name: Build shell: powershell