diff --git a/.github/workflows/registry-ci.yml b/.github/workflows/registry-ci.yml index 92e0d7162..bf7d8cebc 100644 --- a/.github/workflows/registry-ci.yml +++ b/.github/workflows/registry-ci.yml @@ -36,17 +36,45 @@ jobs: steps: - name: Checkout (only for workflow files) - uses: actions/checkout@v4 - - - name: Setup PHP (recommended approach) - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - tools: composer:v2 - coverage: none - extensions: > - mbstring, json, openssl, intl, ldap, xml, zlib, sodium, - pdo, pdo_mysql, pdo_pgsql, gd, xsl, memcached, pcntl, posix + shell: bash + run: | + set -euxo pipefail + git clone \ + --depth=1 \ + --branch "${GITHUB_REF_NAME}" \ + "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" \ + "${GITHUB_WORKSPACE}" + + - name: Install PHP ${{ matrix.php }} and extensions + shell: bash + run: | + set -euxo pipefail + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + software-properties-common ca-certificates gnupg + sudo add-apt-repository -y ppa:ondrej/php + sudo apt-get update + PHP_VER="${{ matrix.php }}" + sudo apt-get install -y --no-install-recommends \ + php${PHP_VER}-cli \ + php${PHP_VER}-mbstring \ + php${PHP_VER}-json \ + php${PHP_VER}-openssl \ + php${PHP_VER}-intl \ + php${PHP_VER}-ldap \ + php${PHP_VER}-xml \ + php${PHP_VER}-zip \ + php${PHP_VER}-sodium \ + php${PHP_VER}-pdo \ + php${PHP_VER}-mysql \ + php${PHP_VER}-pgsql \ + php${PHP_VER}-gd \ + php${PHP_VER}-xsl \ + php${PHP_VER}-memcached \ + php${PHP_VER}-pcntl \ + php${PHP_VER}-posix \ + php${PHP_VER}-curl + sudo update-alternatives --set php /usr/bin/php${PHP_VER} - name: Compute COMANAGE_REGISTRY_SRC_URL shell: bash