Skip to content

Commit 6a58af6

Browse files
authored
Add minimal Windows CI (#532)
For now, only building the extension is supported.
1 parent 04a0f72 commit 6a58af6

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build-windows.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build on Windows
2+
on: [push, pull_request]
3+
jobs:
4+
windows:
5+
defaults:
6+
run:
7+
shell: cmd
8+
strategy:
9+
matrix:
10+
version: ['7.4', '8.0', '8.1']
11+
arch: [x64, x86]
12+
ts: [nts, zts]
13+
runs-on: windows-latest
14+
steps:
15+
- name: Checkout memcached
16+
uses: actions/checkout@v2
17+
- name: Setup PHP
18+
id: setup-php
19+
uses: cmb69/[email protected]
20+
with:
21+
version: ${{matrix.version}}
22+
arch: ${{matrix.arch}}
23+
ts: ${{matrix.ts}}
24+
deps: zlib
25+
- name: Fetch libmemcached
26+
run: curl -OLs https://windows.php.net/downloads/pecl/deps/libmemcached-1.1.1-${{steps.setup-php.outputs.vs}}-${{matrix.arch}}.zip && 7z x libmemcached-1.1.1-${{steps.setup-php.outputs.vs}}-${{matrix.arch}}.zip -o..\deps
27+
- name: Enable Developer Command Prompt
28+
uses: ilammy/msvc-dev-cmd@v1
29+
with:
30+
arch: ${{matrix.arch}}
31+
toolset: ${{steps.setup-php.outputs.toolset}}
32+
- name: phpize
33+
run: phpize
34+
- name: configure
35+
run: configure --enable-memcached --enable-memcached-session --enable-memcached-json --with-prefix=${{steps.setup-php.outputs.prefix}}
36+
- name: make
37+
run: nmake

0 commit comments

Comments
 (0)