forked from amphp/ext-uv
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.12 KB
/
Apple-macOS.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# GitHub Action for PHP with extensions
name: Apple macOS
on:
pull_request:
workflow_dispatch:
jobs:
apple:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [macos-10.15, macos-11, macos-latest]
php-versions: ['7.4', '8.0', '8.1', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
tools: pecl
extensions: curl, fileinfo, mbstring, openssl, simplexml, dom, sockets, sodium, ffi, opcache
- name: Brew install
run: |
brew install automake
- name: Build ext-uv
run: |
phpize
./configure
make
make install
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
- name: Run tests
env:
NO_INTERACTION: 1
run: php run-tests.php -p `which php` --offline --show-diff --set-timeout 120