jdecool/setup-phppublic Fork
⑂ main
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/setup-php.git
git clone ssh://git@rickub.com/jdecool/setup-php.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
failure

Rickub #2

push · rickub · 48a00bf2ran in 6s · 494 lines of output
queued <1s ran 6s total 6s
2 jobs
2 failed
6s duration
— tests
0 artifacts
failuresetup-php (8.4) → Setup PHP View log
Step failed A step exited non-zero. Open the log for the failing command's output.
The process '/usr/bin/bash' failed with exit code 1 The process '/usr/bin/bash' failed with exit code 1
setup-php (8.4)
setup-php (8.5)
failuresetup-php (8.4) 6s

Annotations

  • ERROR The process '/usr/bin/bash' failed with exit code 1
successSet up job
cloning jdecool/setup-php @ 48a00bf2389c71227c4a25ac9b94f2e13aa6b24dwarning: remote HEAD refers to nonexistent ref, unable to checkoutaction ./: node24 ()
successactions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 2s
(checkout already performed by the runner — delivered as the read-only work disk)
successDescribe the runner 2s
Run
cat /etc/os-release
id
cat "$(command -v sudo)"
env | grep -E '^(ImageOS|ImageVersion|RUNNER_|GITHUB_SERVER_URL|GITHUB_API_URL|RICKUB_|ACT=|CONTAINER=)' | sort
ciguest: network up (172.30.0.6/30 via 172.30.0.5)ciguest: starting dockerd (overlay2, data-root on scratch)ciguest: dockerd is readyciguest: loaded baked image postgres_16-alpine.tar.gz: Loaded image: postgres:16-alpineciguest: 1 baked image archive(s) loaded (no per-job registry pull needed)ciguest: logged into registry registry.rickub.com as rickubPRETTY_NAME="Debian GNU/Linux 12 (bookworm)"NAME="Debian GNU/Linux"VERSION_ID="12"VERSION="12 (bookworm)"VERSION_CODENAME=bookwormID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"uid=0(root) gid=0(root) groups=0(root)#!/bin/shexec "$@"GITHUB_API_URL=http://172.30.255.1:8888/ghGITHUB_SERVER_URL=https://rickub.comImageOS=ubuntu22ImageVersion=22.04RICKUB_CI_GIT_URL=http://172.30.255.1:8888/ci/gitRICKUB_EGRESS_PROBE_HOST=registry.rickub.comRICKUB_GITHUB_SERVER_URL=https://rickub.comRICKUB_JOB=setup-php (8.4)RICKUB_REGISTRY_HOST=registry.rickub.comRICKUB_REGISTRY_TOKEN=***RUNNER_ARCH=X64RUNNER_ENVIRONMENT=github-hostedRUNNER_OS=LinuxRUNNER_TEMP=/tmpRUNNER_TOOL_CACHE=/tmp/hostedtoolcacheRUNNER_WORKSPACE=/workspace
failureSetup PHP ! 1s
[command]/usr/bin/bash /workspace/setup-php/src-verbose-xH5wr6/scripts/run.sh++ update=false++ '[' false = true ']'++ debug=release++ [[ nts = \t\s ]]++ [[ nts = \z\t\s ]]++ ts=nts++ fail_fast=false++ use_builds_cache=++ [[ -z ubuntu22 ]]++ [[ -n github-hosted ]]++ [[ github-hosted = \s\e\l\f\-\h\o\s\t\e\d ]]++ [[ -n '' ]]++ [[ -n '' ]]++ _runner=github++ runner=github++ [[ github = \s\e\l\f\-\h\o\s\t\e\d ]]++ tool_path_dir=/usr/local/bin++ tool_cache_path_dir=/tmp/hostedtoolcache/setup-php/tools++ [[ github = \g\i\t\h\u\b ]]++ [[ github = \s\e\l\f\-\h\o\s\t\e\d ]]++ [[ github = \g\i\t\h\u\b ]]++ [[ ubuntu22 =~ ubuntu.* ]]++ check_ppa ondrej/php++ ppa=ondrej/php++ ppa_url=https://ppa.launchpadcontent.net/ondrej/php/ubuntu++ package_dist=bookworm++ branches=main++ local list_format+++ get_sources_format+++ '[' -n '' ']'+++ sources_format=deb+++ '[' -e /etc/apt/sources.list.d/ubuntu.sources ']'+++ '[' -e /etc/apt/sources.list.d/debian.sources ']'+++ sources_format=deb822+++ echo deb822++ list_format=deb822++ IFS='|'++ read -r primary_pattern secondary_pattern+++ get_repo_patterns deb822 https://ppa.launchpadcontent.net/ondrej/php/ubuntu bookworm main+++ local list_format=deb822+++ local ppa_url=https://ppa.launchpadcontent.net/ondrej/php/ubuntu+++ local package_dist=bookworm+++ local branches=main+++ local escaped_url+++ local escaped_dist+++ local escaped_branches++++ escape_regex https://ppa.launchpadcontent.net/ondrej/php/ubuntu++++ printf %s https://ppa.launchpadcontent.net/ondrej/php/ubuntu++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'+++ escaped_url='https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu'++++ escape_regex bookworm++++ printf %s bookworm++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'+++ escaped_dist=bookworm++++ escape_regex main++++ printf %s main++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'+++ escaped_branches=main+++ local 'deb_primary=^deb[[:space:]]+(\[[^]]*\][[:space:]]+)?https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu[[:space:]]+bookworm[[:space:]]'+++ local 'deb_secondary=^deb[[:space:]]+(\[[^]]*\][[:space:]]+)?https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu[[:space:]]+bookworm[[:space:]]+.*main([[:space:]]|$)'+++ local 'deb822_primary=^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$'+++ local 'deb822_secondary=^Suites: bookworm$'+++ '[' deb822 = deb822 ']'+++ printf '%s|%s\n' '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' '^Suites: bookworm$'++ local status_token++ status_token='https://ppa.launchpadcontent.net/ondrej/php/ubuntu|bookworm|main'++ check_lists ondrej/php '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' '^Suites: bookworm$' 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|bookworm|main'++ local ppa=ondrej/php++ local 'primary=^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$'++ local 'secondary=^Suites: bookworm$'++ local 'status_token=https://ppa.launchpadcontent.net/ondrej/php/ubuntu|bookworm|main'++ local match_file=++ check_lists_file=++ '[' -n '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' ']'+++ grep -Elr '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' /etc/apt/sources.list.d+++ head -n 1++ match_file=++ '[' -z '' ']'++ '[' -n '^Suites: bookworm$' ']'++ local candidate+++ grep -Elr '^Suites: bookworm$' /etc/apt/sources.list.d+++ head -n 1++ candidate=++ '[' -n '' ']'++ '[' -n '' ']'++ return 1++ return 1++ update=true++ echo ''++ sudo tee /tmp/sp_update++ export fail_fast++ export runner++ export update++ export ts++ export tool_path_dir++ export tool_cache_path_dir++ self_hosted_setup++ '[' github = self-hosted ']'++ setup_php++ step_log 'Setup PHP'++ local 'message=Setup PHP'++ printf '\n\033[90;1m==> \033[0m\033[37;1m%s\033[0m\n' 'Setup PHP'==> Setup PHP++ '[' false = true ']'++ sudo mkdir -m 777 -p /var/run /run/php+++ command -v php-config++ php_config=++ check_pre_installed++ '[' 8.4 = pre ']'++ [[ -z '' ]]++ '[' '!' -e /usr/bin/php8.4 ']'++ add_php++ '[' github = self-hosted ']'++ '[' true = false ']'++ [[ 8.4 =~ 5.[3-5] ]]++ setup_cached_versions++ run_script php-ubuntu 8.4 release nts++ repo=php-ubuntu++ shift++ args=("$@")++ get -q -e /tmp/install.sh https://github.com/shivammathur/php-ubuntu/releases/latest/download/install.sh https://cdn.jsdelivr.net/gh/shivammathur/php-ubuntu@main/scripts/install.sh https://setup-php.com/php-ubuntu/install.sh++ local download_status=1 status_code=000++ mode=-q++ execute=-e++ file_path=/tmp/install.sh++ shift 3++ links=("$@")++ '[' -q = -s ']'++ '[' github = self-hosted ']'++ for link in "${links[@]}"+++ sudo curl -w '%{http_code}' -o /tmp/install.sh -sL https://github.com/shivammathur/php-ubuntu/releases/latest/download/install.sh++ status_code=200++ '[' 200 = 200 ']'++ download_status=0++ break++ '[' 0 -ne 0 ']'++ [[ -e = \-\e ]]++ [[ -e /tmp/install.sh ]]++ sudo chmod a+x /tmp/install.sh++ '[' -q = -v ']'++ '[' github = self-hosted ']'++ return 0++ bash /tmp/install.sh 8.4 release nts % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9 100 9 0 0 144 0 --:--:-- --:--:-- --:--:-- 145 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 27150 0 27150 0 0 277k 0 --:--:-- --:--:-- --:--:-- 279k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 383 100 383 0 0 1812 0 --:--:-- --:--:-- --:--:-- 1815 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 324 100 324 0 0 7838 0 --:--:-- --:--:-- --:--:-- 7902zstd: /*stdin*\: unsupported format tar: Child returned status 1tar: Error is not recoverable: exiting now/usr/local/bin/sudo: 2: exec: LC_ALL=C.UTF-8: not foundupdate-alternatives: error: update-alternatives: error: alternative path /usr/bin/phar8.4 doesn't existupdate-alternatives: error: alternative path /usr/bin/php8.4 doesn't existalternative path /usr/bin/phpize8.4 doesn't existupdate-alternatives: error: alternative path /run/php/php8.4-fpm.sock doesn't existupdate-alternatives: error: alternative path /usr/lib/cgi-bin/php8.4 doesn't existupdate-alternatives: error: alternative path /usr/bin/phar.phar8.4 doesn't existupdate-alternatives: error: alternative path /usr/sbin/php-fpm8.4 doesn't existupdate-alternatives: error: alternative path /usr/bin/php-config8.4 doesn't existupdate-alternatives: error: alternative path /usr/bin/php-cgi8.4 doesn't existupdate-alternatives: error: alternative path /usr/bin/phpdbg8.4 doesn't existReading package lists...Building dependency tree...Reading state information...tee: /etc/php/8.4/mods-available/redis.ini: No such file or directory; priority=25extension=redis.sofind: '/etc/php/8.4': No such file or directory++ status=Installed+++ command -v php-config++ php_config=++ command -v php8.4++ add_log $'\342\234\227' PHP 'Could not setup PHP 8.4'++ local $'mark=\342\234\227'++ local subject=PHP++ local 'message=Could not setup PHP 8.4'++ '[' $'\342\234\227' = $'\342\234\223' ']'++ '[' $'\342\234\227' = '!' ']'++ printf '\033[31;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s\033[0m\n' $'\342\234\227' PHP 'Could not setup PHP 8.4'++ '[' false = true ']'++ exit 1✗ PHP Could not setup PHP 8.4The process '/usr/bin/bash' failed with exit code 1
skippedCheck the installation !
Run
php -v
php -m | grep -E '^(intl|pdo_pgsql)$'
composer --version
phpstan --version
test "$(php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')" = "${{ matrix.php-version }}"
echo "php-version output: ${{ steps.setup-php.outputs.php-version }}"
(skipped: step if: condition evaluated to false)step failed: exit code 1 — Setup PHP
Annotations
The process '/usr/bin/bash' failed with exit code 1

No test reports for this run.

Tell a job where its test runner writes its report and this tab fills in: how many tests passed, failed and were skipped, a bar of the result at a glance, then every failure first — with the assertion that failed and the output around it — over a per-suite list of cases and their durations. No scrolling a log for the word FAIL.

It is one reports: key on the job — a job key, not a step, so the report is collected whatever the job concluded. JUnit XML and go test -json are both understood, and most runners already emit one of them. reports: is a rickub extension and works only in .rickub/workflows/; in .github/workflows/ it is a parse error on purpose, because those files are also meant to run on github.com.