shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.

Home Page:https://setup-php.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apple ARM GitHub runners fail on PHP

Lewiscowles1986 opened this issue · comments

Describe the bug

pact-foundation/pact-php#497

(in fact lots of recent runs) which use this, error when trying to setup php

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1 (no data)

Runners

  • GitHub Hosted
  • Self Hosted (no data)

Operating systems

MacOS, ARM

PHP versions

8.1, 8.2, 8.3

To Reproduce

name: Code Analysis & Test

on:
  push: 
test:
    runs-on: macos-14
    steps:
      - uses: actions/checkout@v4
        name: Checkout repository

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          extensions: sockets, curl, zip, ffi
          php-version: 8.2
          coverage: none
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


Expected behavior

No warnings about dylib

Screenshots/Logs

https://github.com/pact-foundation/pact-php/actions/runs/8074546373/job/22060026690?pr=494

Additional context

As your job passes, I never thought about it twice, but looking at the logs, it seems to be the root cause.

Are you willing to submit a PR?

If it stays open long enough. Watching failing builds is making my eye twitch

From pact-foundation/pact-php#497

Fixed in 2.30.0.

Please try running the workflow again.

I'm so curious looking at that non-build script change in how it fixed this 😂 . Found it

4f6ab99 this is the actual commit I think. So homebrew must have been a bit messed up, simplifying fixed.