Skip to content

Commit

Permalink
Attempt cleanup a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-miller-rakuten committed Nov 30, 2023
1 parent 8f80285 commit 95fecb8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ jobs:
- run: |
set -xe
# Related issue: https://github.com/actions/setup-python/issues/577
# Unlink and re-link to prevent errors when GitHub macOS runner images install Node outside of brew.
brew list -1 | grep node | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
# Unlink and re-link to prevent errors when GitHub macOS runner images install Python outside of brew.
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
brew --version
brew tap shivammathur/php
brew update
brew install --force --overwrite shivammathur/php/php@${{ matrix.php-version }}
brew install shivammathur/php/php@${{ matrix.php-version }}
./phpswitch.sh ${{ matrix.php-version }} -s
switched=$(php -v | grep -e '^PHP' | cut -d' ' -f2 | cut -d. -f1,2)
if [ "${{ matrix.php-version }}" != "$switched" ]; then
Expand Down

0 comments on commit 95fecb8

Please sign in to comment.