Skip to content

Commit

Permalink
Add back support for nightly builds on self-hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 27, 2023
1 parent eeddcfe commit 124d256
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,17 @@ add_devtools() {
add_log "${tick:?}" "$tool" "Added $tool $semver"
}

# Function to setup the nightly build from shivammathur/php-builder
setup_nightly() {
run_script "php-builder" "${runner:?}" "$version" "${debug:?}" "${ts:?}"
}

# Function to setup PHP 5.3, PHP 5.4 and PHP 5.5.
setup_old_versions() {
run_script "php5-ubuntu" "$version"
}

# Function to setup PHP from the cached builds.
setup_cached_versions() {
run_script "php-ubuntu" "$version" "${debug:?}" "${ts:?}"
}
Expand Down Expand Up @@ -168,9 +174,13 @@ update_php() {
# Function to install PHP.
add_php() {
if [ "${runner:?}" = "self-hosted" ] || [ "${use_package_cache:-true}" = "false" ]; then
if [[ "$version" =~ ${nightly_versions:?} ]]; then
setup_nightly
else
add_packaged_php
switch_version >/dev/null 2>&1
add_pecl
fi
elif [[ "$version" =~ ${old_versions:?} ]]; then
setup_old_versions
else
Expand Down

0 comments on commit 124d256

Please sign in to comment.