Move matchers setup to scripts

This commit is contained in:
Shivam Mathur
2020-10-15 14:26:35 +05:30
parent c43f842cf3
commit 6cba0a914f
7 changed files with 6 additions and 89 deletions
+2
View File
@@ -204,6 +204,7 @@ setup_php() {
tick="✓"
cross="✗"
version=$1
dist=$2
tool_path_dir="/usr/local/bin"
curl_opts=(-sL)
existing_version=$(php-config --version 2>/dev/null | cut -c 1-3)
@@ -224,4 +225,5 @@ scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
sudo mkdir -p "$ext_dir"
semver=$(php -v | head -n 1 | cut -f 2 -d ' ')
configure_pecl
sudo mv "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/"
add_log "$tick" "PHP" "$status PHP $semver"