-
Notifications
You must be signed in to change notification settings - Fork 19
56 lines (56 loc) · 1.45 KB
/
ci.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
name: Build and Test
on: [push, pull_request]
jobs:
ubuntu:
strategy:
matrix:
version: ['7.3', '7.4', '8.0', '8.1']
runs-on: ubuntu-latest
steps:
- name: Checkout dio
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.version}}
- name: phpize
run: phpize
- name: configure
run: ./configure --enable-dio
- name: make
run: make
- name: test
run: make test TESTS=tests
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ["7.4", "8.0"]
arch: [x64]
ts: [ts]
runs-on: windows-latest
steps:
- name: Checkout dio
uses: actions/checkout@v2
- name: Setup PHP
id: setup-php
uses: cmb69/[email protected]
with:
version: ${{matrix.version}}
arch: ${{matrix.arch}}
ts: ${{matrix.ts}}
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.arch}}
toolset: ${{steps.setup-php.outputs.toolset}}
- name: phpize
run: phpize
- name: configure
run: configure --enable-dio --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: test
run: nmake test TESTS=tests