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

setup fails with libicuio.74.dylib error

stovak opened this issue · comments

Describe the bug

Version

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

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems
currently just using MacOS-latest

PHP versions
7.4, 8.2, 8.3

To Reproduce

  functional:
    runs-on: ${{ matrix.operating-system }}
    name: Functional testing matrix - PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
    if: ${{ github.repository_owner == 'pantheon-systems' }}
    strategy:
      matrix:
        operating-system: [ 'macos-latest' ]
        php-versions: [ '7.4', '8.2', '8.3' ]
      max-parallel: 1

Expected behavior
As recently as last week, these tests were running fine. Something must have changed with home-brew.

Screenshots/Logs

dyld[4587]: Library not loaded: '@loader_path/../../../../opt/icu4c/lib/libicuio.74.dylib'
  Referenced from: '/usr/local/Cellar/php@8.2/8.2.***6_***/bin/php'
  Reason: tried: '/usr/local/Cellar/php@8.2/8.2.***6_***/bin/../../../../opt/icu4c/lib/libicuio.74.dylib' (no such file), '/usr/local/lib/libicuio.74.dylib' (no such file), '/usr/lib/libicuio.74.dylib'

Additional context

Are you willing to submit a PR?
yes. No idea how to fix.

Successful Run:
image

Failed Run
image

Just came across this

icu4c was just updated a couple of days ago - history to 74.2

macos-latest is currently macos-12 so this should help

brew upgrade icu4c alone picks up the older formula, I think until the image is refreshed by the github runners team

      - run: brew update && brew upgrade icu4c
        if: runner.os == 'macOS'

Our CI run yesterday didn't show the problem, but the formula was also changed again 7 hours ago:
https://github.com/Homebrew/homebrew-core/pull/164239/files#diff-56cb84e443c4e098fcab1be8433f3014e8393c0a8841dabb55677ac9db2e98b5

Just restarted a workflow that had this issue and is now green.

Thanks guys! So weird that it worked one dan not the next.