Skip to content

Commit 49d3d6a

Browse files
shannahclaude
andauthored
ci: install PHP via setup-php instead of Homebrew (#490)
brew install php now builds from source on macos-14 and its post-install pear channel update fails when pear.php.net is unreachable, breaking the release workflow. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4aa36c2 commit 49d3d6a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ jobs:
3939
# release with a higher Node engine requirement can't break this step.
4040
run: npm install -g npm@11
4141
- name: Install PHP
42-
run: |
43-
brew update
44-
brew install php
42+
# Use prebuilt PHP instead of `brew install php`, which builds from source
43+
# on macos-14 (~20 min) and fails if pear.php.net is unreachable.
44+
uses: shivammathur/setup-php@v2
45+
with:
46+
php-version: '8.3'
47+
tools: none
4548
- name: Install osslsigncode
4649
run: brew install osslsigncode
4750
- name: Install MacOS Certificates

0 commit comments

Comments
 (0)