Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 393c0bd

Browse files
authored
Merge pull request #2125 from phpredis/actions
GitHub Actions
2 parents 9ff5c33 + 9d61504 commit 393c0bd

1 file changed

Lines changed: 71 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on: [push, pull_request]
22

33
jobs:
4-
build:
4+
ubuntu:
55
runs-on: ubuntu-latest
66
continue-on-error: ${{ matrix.experimental }}
77
strategy:
@@ -14,7 +14,7 @@ jobs:
1414
experimental: true
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
with:
1919
submodules: true
2020
- name: Install PHP ${{ matrix.php }}
@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
phpize
3636
./configure --enable-redis-lzf --enable-redis-zstd --enable-redis-igbinary --enable-redis-msgpack --enable-redis-lz4 --with-liblz4
37-
sudo make install
37+
sudo make -j$(nproc) install
3838
echo 'extension = redis.so' | sudo tee -a $(php --ini | grep 'Scan for additional .ini files' | awk '{print $7}')/90-redis.ini
3939
- name: Start redis
4040
run: |
@@ -78,3 +78,71 @@ jobs:
7878
env:
7979
TEST_PHP_ARGS: -e
8080
USE_ZEND_ALLOC: 0
81+
82+
macos:
83+
runs-on: macos-latest
84+
continue-on-error: ${{ matrix.experimental }}
85+
strategy:
86+
fail-fast: false
87+
matrix:
88+
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
89+
experimental: [false]
90+
include:
91+
- php: '8.2'
92+
experimental: true
93+
steps:
94+
- name: Checkout
95+
uses: actions/checkout@v3
96+
with:
97+
submodules: true
98+
- name: Install PHP ${{ matrix.php }}
99+
uses: shivammathur/setup-php@v2
100+
with:
101+
php-version: ${{ matrix.php }}
102+
extensions: json, :redis
103+
coverage: none
104+
tools: none
105+
- name: Install dependencies
106+
run: |
107+
pecl install igbinary
108+
pecl install msgpack
109+
- name: Build phpredis
110+
run: |
111+
phpize
112+
./configure --enable-redis-lzf --enable-redis-zstd --enable-redis-igbinary --enable-redis-msgpack --enable-redis-lz4 --with-liblz4
113+
sudo make install
114+
echo 'extension = redis.so' | sudo tee -a $(php --ini | grep 'Scan for additional .ini files' | awk '{print $7}')/90-redis.ini
115+
116+
windows:
117+
runs-on: windows-latest
118+
continue-on-error: ${{ matrix.experimental }}
119+
strategy:
120+
fail-fast: false
121+
matrix:
122+
php: ['7.3', '7.4', '8.0', '8.1']
123+
experimental: [false]
124+
include:
125+
- php: '8.2'
126+
experimental: true
127+
steps:
128+
- name: Checkout
129+
uses: actions/checkout@v3
130+
with:
131+
submodules: true
132+
- name: Install PHP ${{ matrix.php }}
133+
uses: cmb69/[email protected]
134+
id: setup-php-sdk
135+
with:
136+
version: ${{ matrix.php }}
137+
arch: x64
138+
ts: nts
139+
- name: Install dependencies
140+
uses: ilammy/msvc-dev-cmd@v1
141+
with:
142+
arch: x64
143+
toolset: ${{steps.setup-php-sdk.outputs.toolset}}
144+
- name: Build phpredis
145+
run: |
146+
phpize
147+
./configure --enable-redis --with-prefix=${{steps.setup-php-sdk.outputs.prefix}}
148+
nmake

0 commit comments

Comments
 (0)