-
-
Notifications
You must be signed in to change notification settings - Fork 139
40 lines (40 loc) · 1.2 KB
/
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
name: Build and Test on Windows
on: [push]
jobs:
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ["7.4", "8.0"]
arch: [x64]
ts: [ts]
runs-on: windows-2019
steps:
- name: Checkout imagick
uses: actions/checkout@v3
- name: Setup PHP
id: setup-php
uses: cmb69/[email protected]
with:
version: ${{matrix.version}}
arch: ${{matrix.arch}}
ts: ${{matrix.ts}}
- name: Download deps
run: |
curl -LO https://windows.php.net/downloads/pecl/deps/ImageMagick-7.1.0-18-vc15-${{matrix.arch}}.zip
7z x ImageMagick-7.1.0-18-vc15-${{matrix.arch}}.zip -o..\deps
- 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 --with-imagick --with-php-build=..\deps --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: test
run: nmake test TESTS="-j4 --show-diff -g FAIL,BORK,WARN,LEAK tests"