Skip to content

Commit

Permalink
Use Conan to install Boost 1.72 on Windows (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Mar 20, 2021
1 parent 3669878 commit fb89e83
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/github_actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb89e83

Please sign in to comment.