From fb89e8368242492abaf597ac7ce081bf3d4a3094 Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Sat, 20 Mar 2021 21:56:25 +0000 Subject: [PATCH] Use Conan to install Boost 1.72 on Windows (#175) --- .github/workflows/github_actions_build.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/github_actions_build.yml b/.github/workflows/github_actions_build.yml index 72ddde4fe..a7f7c7535 100644 --- a/.github/workflows/github_actions_build.yml +++ b/.github/workflows/github_actions_build.yml @@ -239,13 +239,9 @@ jobs: - name: install boost run: | - # Use the boost-1.72.0-win32-msvc14.1-x86_64.tar.gz for Windows 2016 - $url = "https://github.com/actions/boost-versions/releases/download/1.72.0-20200608.4/boost-1.72.0-win32-msvc14.2-x86_64.tar.gz" - (New-Object System.Net.WebClient).DownloadFile($url, "$env:TEMP\boost.tar.gz") - 7z.exe x "$env:TEMP\boost.tar.gz" -o"$env:TEMP\boostArchive" -y | Out-Null - 7z.exe x "$env:TEMP\boostArchive" -o"$env:TEMP\boost" -y | Out-Null - Push-Location -Path "$env:TEMP\boost" - Invoke-Expression .\setup.ps1 + conan install boost/1.72.0@ -o boost:header_only=True -g deploy --install-folder ${env:GITHUB_WORKSPACE} + ${boostroot} = "${env:GITHUB_WORKSPACE}" + echo "BOOST_ROOT=${boostroot}" >> ${env:GITHUB_ENV} # DOS paths - with backslashes - are not compatible with the github bash # shell that is invoked in build-and-test/actions.yml - so sadly the code