shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.91k stars 340 forks source link

Installation of gd fails on 32bit with PHP 8.0 #750

Closed SystemKeeper closed 1 year ago

SystemKeeper commented 1 year ago

Describe the bug

Version

Runners

Operating systems

Ubuntu 22.04 on selfhosted host, using shivammathur/node:latest-i386 as container

PHP versions

8.0

To Reproduce

name: Test 32bit

on:
  pull_request:

jobs:
  phpunit-32bits:
    runs-on: ubuntu-22.04

    container: shivammathur/node:latest-i386

    strategy:
      matrix:
        php-versions: ['8.0']

    steps:
      - name: Set up php ${{ matrix.php-versions }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
          extensions: gd
          tools: phpunit:9
          coverage: none
          ini-values:
            apc.enabled=on,
            apc.enable_cli=on

results in

==> Setup Extensions
grep: /etc/apt/sources.list: No such file or directory
āœ— gd Could not install gd on PHP 8.0.29

Expected behavior

Works šŸ˜‰

Screenshots/Logs

Additional context

Running apt install php8.0-gd inside the container works. The file /etc/apt/sources.list is indeed missing.

Are you willing to submit a PR?

SystemKeeper commented 1 year ago

Fixed by https://github.com/shivammathur/setup-php/commit/9c77701ae57b0c47f6732beebfbdec76e4e5c90a already, sorry for the noise :-)