-
Notifications
You must be signed in to change notification settings - Fork 324
37 lines (37 loc) · 1.22 KB
/
build-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
name: Build on Windows
on: [push, pull_request]
jobs:
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ['7.4', '8.0', '8.1']
arch: [x64, x86]
ts: [nts, zts]
runs-on: windows-latest
steps:
- name: Checkout memcached
uses: actions/checkout@v4
- name: Setup PHP
id: setup-php
uses: cmb69/[email protected]
with:
version: ${{matrix.version}}
arch: ${{matrix.arch}}
ts: ${{matrix.ts}}
deps: zlib
- name: Fetch libmemcached
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
- 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-memcached --enable-memcached-session --enable-memcached-json --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake