0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-24 11:41:52 +00:00

Add test to build on macos using v8 from brew

This commit is contained in:
Joshua Behrens 2024-10-03 15:49:30 +02:00
parent 5234490839
commit daaa37d1c7
No known key found for this signature in database
GPG Key ID: DD28BD85EE8F67DD

View File

@ -136,3 +136,46 @@ jobs:
path: | path: |
php_test_results*.txt php_test_results*.txt
tests/*.out tests/*.out
macos-package-manager-brew:
strategy:
matrix:
php-versions:
- '8.2'
- '8.3'
- '8.4'
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install dependencies
run: |
brew install v8
- name: Build extension
run: |
phpize
./configure --with-v8js=/opt/homebrew CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
make
make test
- name: Archive test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: phpt-test-results
path: |
php_test_results*.txt
tests/*.out