Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-06-28 10:13:46 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-06-30 20:55:14 +0300
commit9d61504e752da668301effaddfb75112f9b8cba4 (patch)
treeb3ed27d7a4dd42f21be34db88e60b9fe961a5f6d
parent9ff5c33a179909ff75003517c8066b8c28c428e7 (diff)
GitHub Actionsactions
Test builds on macos and windows
-rw-r--r--.github/workflows/ci.yml74
1 files changed, 71 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5f98241a..51cb7651 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,7 +1,7 @@
on: [push, pull_request]
jobs:
- build:
+ ubuntu:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
@@ -14,7 +14,7 @@ jobs:
experimental: true
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
submodules: true
- name: Install PHP ${{ matrix.php }}
@@ -34,7 +34,7 @@ jobs:
run: |
phpize
./configure --enable-redis-lzf --enable-redis-zstd --enable-redis-igbinary --enable-redis-msgpack --enable-redis-lz4 --with-liblz4
- sudo make install
+ sudo make -j$(nproc) install
echo 'extension = redis.so' | sudo tee -a $(php --ini | grep 'Scan for additional .ini files' | awk '{print $7}')/90-redis.ini
- name: Start redis
run: |
@@ -78,3 +78,71 @@ jobs:
env:
TEST_PHP_ARGS: -e
USE_ZEND_ALLOC: 0
+
+ macos:
+ runs-on: macos-latest
+ continue-on-error: ${{ matrix.experimental }}
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
+ experimental: [false]
+ include:
+ - php: '8.2'
+ experimental: true
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: Install PHP ${{ matrix.php }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ extensions: json, :redis
+ coverage: none
+ tools: none
+ - name: Install dependencies
+ run: |
+ pecl install igbinary
+ pecl install msgpack
+ - name: Build phpredis
+ run: |
+ phpize
+ ./configure --enable-redis-lzf --enable-redis-zstd --enable-redis-igbinary --enable-redis-msgpack --enable-redis-lz4 --with-liblz4
+ sudo make install
+ echo 'extension = redis.so' | sudo tee -a $(php --ini | grep 'Scan for additional .ini files' | awk '{print $7}')/90-redis.ini
+
+ windows:
+ runs-on: windows-latest
+ continue-on-error: ${{ matrix.experimental }}
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.3', '7.4', '8.0', '8.1']
+ experimental: [false]
+ include:
+ - php: '8.2'
+ experimental: true
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: Install PHP ${{ matrix.php }}
+ uses: cmb69/setup-php-sdk@v0.6
+ id: setup-php-sdk
+ with:
+ version: ${{ matrix.php }}
+ arch: x64
+ ts: nts
+ - name: Install dependencies
+ uses: ilammy/msvc-dev-cmd@v1
+ with:
+ arch: x64
+ toolset: ${{steps.setup-php-sdk.outputs.toolset}}
+ - name: Build phpredis
+ run: |
+ phpize
+ ./configure --enable-redis --with-prefix=${{steps.setup-php-sdk.outputs.prefix}}
+ nmake