-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10040 from ethereum/osxCircleCICacheKey
Reuse CircleCI osx cache across branches.
- Loading branch information
Showing
2 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
$ErrorActionPreference = "Stop" | ||
if ( -not (Test-Path "$PSScriptRoot\..\deps\boost") ) { | ||
$ErrorActionPreference = "Stop" | ||
|
||
# Needed for Invoke-WebRequest to work via CI. | ||
$progressPreference = "silentlyContinue" | ||
# Needed for Invoke-WebRequest to work via CI. | ||
$progressPreference = "silentlyContinue" | ||
|
||
New-Item -ItemType Directory -Force -Path "$PSScriptRoot\..\deps" | ||
New-Item -ItemType Directory -Force -Path "$PSScriptRoot\..\deps" | ||
|
||
Invoke-WebRequest -URI "https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-win64-x64.zip" -OutFile cmake.zip | ||
tar -xf cmake.zip | ||
mv cmake-3.18.2-win64-x64 "$PSScriptRoot\..\deps\cmake" | ||
Invoke-WebRequest -URI "https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-win64-x64.zip" -OutFile cmake.zip | ||
tar -xf cmake.zip | ||
mv cmake-3.18.2-win64-x64 "$PSScriptRoot\..\deps\cmake" | ||
|
||
Invoke-WebRequest -URI "https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip | ||
tar -xf boost.zip | ||
cd boost_1_74_0 | ||
.\bootstrap.bat | ||
.\b2 -j4 -d0 link=static runtime-link=static variant=release threading=multi address-model=64 --with-filesystem --with-system --with-program_options --with-test --prefix="$PSScriptRoot\..\deps\boost" install | ||
if ( -not $? ) { throw "Error building boost." } | ||
cd .. | ||
Invoke-WebRequest -URI "https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip | ||
tar -xf boost.zip | ||
cd boost_1_74_0 | ||
.\bootstrap.bat | ||
.\b2 -j4 -d0 link=static runtime-link=static variant=release threading=multi address-model=64 --with-filesystem --with-system --with-program_options --with-test --prefix="$PSScriptRoot\..\deps\boost" install | ||
if ( -not $? ) { throw "Error building boost." } | ||
cd .. | ||
} |