Skip to content

Commit b8c86ef

Browse files
committed
Add test to build on macos using v8 from brew
1 parent dde1c5a commit b8c86ef

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,46 @@ jobs:
139139
path: |
140140
php_test_results*.txt
141141
tests/*.out
142+
143+
macos-package-manager-brew:
144+
strategy:
145+
matrix:
146+
php-versions:
147+
- '8.2'
148+
- '8.3'
149+
- '8.4'
150+
151+
runs-on: macos-latest
152+
153+
steps:
154+
- name: Checkout code
155+
uses: actions/checkout@v2
156+
157+
- name: Setup PHP
158+
uses: shivammathur/setup-php@v2
159+
with:
160+
php-version: ${{ matrix.php-versions }}
161+
coverage: none
162+
163+
- name: Set up Homebrew
164+
uses: Homebrew/actions/setup-homebrew@master
165+
166+
- name: Install dependencies
167+
run: |
168+
brew install v8
169+
170+
- name: Build extension
171+
run: |
172+
phpize
173+
./configure --with-v8js=/opt/homebrew CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
174+
make
175+
make test
176+
177+
- name: Archive test results
178+
if: failure()
179+
uses: actions/upload-artifact@v4
180+
with:
181+
name: phpt-test-results
182+
path: |
183+
php_test_results*.txt
184+
tests/*.out

0 commit comments

Comments
 (0)