Skip to content

Commit 60ed4e6

Browse files
committed
Used Boost Windows Binary.
1 parent f0ec0fc commit 60ed4e6

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

azure-pipelines.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -139,28 +139,14 @@ steps:
139139
- powershell: |
140140
$boostVersion = "1.88.0"
141141
$boostDirName = "boost_1_88_0"
142-
$boostArchive = "$env:TEMP\$boostDirName.7z"
143-
$boostUrl = "https://archives.boost.io/release/$boostVersion/source/$boostDirName.7z"
144-
$installPrefix = "C:\hostedtoolcache\windows\boost-src"
142+
$boostUrl = "https://archives.boost.io/release/1.88.0/binaries/boost_1_88_0-msvc-14.3-64.exe"
145143
146144
Write-Host "Downloading boost via curl..."
147-
curl.exe -L -o $boostArchive $boostUrl
145+
curl.exe -L -o "$env:TEMP\boost.exe" $boostUrl
148146
149-
Write-Host "Extracting boost..."
150-
& 7z x $boostArchive "-o$env:TEMP\$boostDirName" -y
147+
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\hostedtoolcache\windows\Boost\1.88.0\x86_64"
151148
152-
cd "$env:TEMP\$boostDirName\$boostDirName"
153-
.\bootstrap.bat
154-
.\b2 toolset=msvc link=static,shared install `
155-
-j2 `
156-
--prefix=$installPrefix `
157-
--with-container `
158-
--with-filesystem `
159-
--with-log `
160-
--with-program_options `
161-
--with-system `
162-
--with-test
163-
displayName: 'Build boost from source with curl'
149+
displayName: 'Build boost'
164150

165151
- powershell: |
166152
git submodule update --init --recursive

0 commit comments

Comments
 (0)