Skip to content

Commit daaa37d

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

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

0 commit comments

Comments
 (0)