mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
[Ubuntu] Get toolset value function. (#2435)
* [macOS] Fail Pester tests on error * return it back * [Ubuntu] add get_toolset_values function * added fix * fix all nitpicks * try to get rid brackets * removed brackets. * pipx-package fix
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/os.sh
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
function InstallClang {
|
||||
local version=$1
|
||||
@@ -32,10 +33,8 @@ function SetDefaultClang {
|
||||
wget https://apt.llvm.org/llvm.sh
|
||||
chmod +x llvm.sh
|
||||
|
||||
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
|
||||
|
||||
versions=$(jq -r '.clang.versions[]' $toolset)
|
||||
default_clang_version=$(jq -r '.clang.default_version' $toolset)
|
||||
versions=$(get_toolset_value '.clang.versions[]')
|
||||
default_clang_version=$(get_toolset_value '.clang.default_version')
|
||||
|
||||
for version in ${versions[*]}; do
|
||||
InstallClang $version
|
||||
|
||||
Reference in New Issue
Block a user