-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (71 loc) · 2.3 KB
/
spawn_windows.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# GitHub Action for PHP with extensions
name: Windows
on: [push, pull_request]
jobs:
windows:
name: Windows CI
runs-on: windows-2019
continue-on-error: true
strategy:
fail-fast: false
matrix:
operating-system: [windows-2019]
php: ['7.3', '7.4']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, simplexml, curl, dom, sockets, fileinfo, openssl, xdebug
ini-values: extension=uv
coverage: xdebug
env:
PHPTS: ts # specify ts or nts
- name: Download and install PHP-UV
shell: powershell
run: |
cd C:\tools\php
Invoke-WebRequest "https://windows.php.net/downloads/pecl/releases/uv/0.2.4/php_uv-0.2.4-${{ matrix.php }}-ts-vc15-x64.zip" -OutFile "php_uv-0.2.4-${{ matrix.php }}-ts-vc15-x64.zip"
7z x -y php_uv-0.2.4-${{ matrix.php }}-ts-vc15-x64.zip libuv.dll php_uv.dll
copy php_uv.dll ext\php_uv.dll
del php_uv.dll
del php_uv-0.2.4-${{ matrix.php }}-ts-vc15-x64.zip
php -m
- name: Install dependencies
run: composer install
- name: Test with phpunit
run: vendor\bin\phpunit -d zend.enable_gc=0 --coverage-clover=coverage/phpunit/clover.xml
- name: Submit code coverage
if: ${{ success() }} || ${{ failure() }}
uses: codecov/codecov-action@v1
with:
file: ./clover.xml # optional
windows_php8:
name: Windows CI - no libuv
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
operating-system: [windows-latest]
php: ['8', '8.1']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: pecl
extensions: mbstring, simplexml, curl, dom, sockets, fileinfo, openssl
env:
PHPTS: ts # specify ts or nts
- name: Install dependencies
run: composer install
- name: Test with phpunit
run: vendor\bin\phpunit -d zend.enable_gc=0 --coverage-clover=coverage/phpunit/clover.xml
- name: Submit code coverage
uses: codecov/codecov-action@v1
with:
file: ./clover.xml # optional