mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-23 18:31:51 +00:00
Add test to build on macos using v8 from brew
This commit is contained in:
parent
5234490839
commit
daaa37d1c7
43
.github/workflows/build-test.yml
vendored
43
.github/workflows/build-test.yml
vendored
@ -136,3 +136,46 @@ jobs:
|
||||
path: |
|
||||
php_test_results*.txt
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user