mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-04-25 17:58:08 +02:00
eb39e469d0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
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/setup-php-sdk@v0.7
|
|
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
|