xref: /php-src/.github/actions/brew/action.yml (revision d6839f77)
1name: brew
2runs:
3  using: composite
4  steps:
5    - shell: bash
6      run: |
7        set -x
8
9        # Patch brew to overwrite always
10        formula_installer="$(brew --repo)"/Library/Homebrew/formula_installer.rb
11        code=" keg.link\(verbose: verbose\?"
12        sudo sed -Ei '' "s/$code.*/$code, overwrite: true\)/" "$formula_installer"
13
14        # Some packages exist on x86 but not arm, or vice versa.
15        # Install them with reinstall to avoid warnings.
16        brew reinstall autoconf webp tidy-html5 libzip libsodium icu4c
17        brew install \
18          bison \
19          re2c
20        brew install \
21          bzip2 \
22          enchant \
23          libffi \
24          intltool \
25          libiconv \
26          t1lib \
27          libxml2 \
28          libjpeg \
29          libxslt
30