mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Switch provisioners to install Boost from GitHub releases on Ubuntu (#995)
* switched provisioners to install Boost from GitHub releases on Ubuntu * removed DocumentInstalledItem from boost.sh Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
This commit is contained in:
@@ -4,12 +4,10 @@
|
||||
## Desc: Installs Boost C++ Libraries
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/document.sh
|
||||
|
||||
TOOLSET_PATH="$INSTALLER_SCRIPT_FOLDER/toolcache.json"
|
||||
BOOST_LIB=/usr/local/share/boost
|
||||
BOOST_VERSIONS=$(cat $TOOLSET_PATH | jq -r 'to_entries[] | select(.key | match("boost")) | .value[] +".0"')
|
||||
TOOLSET_PATH="$INSTALLER_SCRIPT_FOLDER/toolset.json"
|
||||
BOOST_LIB="$AGENT_TOOLSDIRECTORY/boost"
|
||||
BOOST_VERSIONS=$(cat $TOOLSET_PATH | jq -r '.toolcache[] | select(.name | contains("boost")) | .versions[]')
|
||||
BOOST_ARCH=$(cat $TOOLSET_PATH | jq -r '.toolcache[] | select(.name | contains("boost")) | .arch')
|
||||
|
||||
# Install Boost
|
||||
for BOOST_VERSION in ${BOOST_VERSIONS}
|
||||
@@ -17,6 +15,5 @@ do
|
||||
BOOST_SYMLINK_VER=$(echo "${BOOST_VERSION//[.]/_}")
|
||||
BOOST_ROOT_VERSION="BOOST_ROOT_$BOOST_SYMLINK_VER"
|
||||
|
||||
echo "$BOOST_ROOT_VERSION=$BOOST_LIB/$BOOST_VERSION" | tee -a /etc/environment
|
||||
DocumentInstalledItem "Boost C++ Libraries $BOOST_VERSION"
|
||||
echo "$BOOST_ROOT_VERSION=$BOOST_LIB/$BOOST_VERSION/$BOOST_ARCH" | tee -a /etc/environment
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user