@@ -11,15 +11,21 @@ jobs:
1111 fail-fast : false
1212 matrix :
1313 php : [7.4, '8.0', 8.1]
14- swoole : ['4.8.10']
14+ swoole : ['5.0.0', ' 4.8.10']
1515 tdengine : ['2.4.0.18']
16+ exclude :
17+ - php : 7.4
18+ swoole : ' 5.0.0'
1619
1720 env :
1821 TDENGINE_VERSION : ${{ matrix.tdengine }}
1922
2023 steps :
2124 - uses : actions/checkout@v2
2225
26+ - name : Prepare
27+ run : sudo apt update && sudo apt install -y gcc cmake build-essential git libssl-dev
28+
2329 - name : Build TDengine
2430 run : sudo -E bash .github/script/build-tdengine.sh
2531
@@ -43,16 +49,16 @@ jobs:
4349 - name : Test
4450 run : ./run-tests.sh
4551
46- test-tdengine :
52+ test-tdengine-linux :
4753 name : Linux PHP-${{ matrix.php }} TDengine-${{ matrix.tdengine }} Swoole-${{ matrix.swoole }}
4854 runs-on : ubuntu-20.04
4955
5056 strategy :
5157 fail-fast : false
5258 matrix :
5359 php : [8.1]
54- swoole : ['4.8.10 ']
55- tdengine : ['2.6.0.1']
60+ swoole : ['5.0.0 ']
61+ tdengine : ['3.0.0.1', ' 2.6.0.1']
5662
5763 env :
5864 TDENGINE_VERSION : ${{ matrix.tdengine }}
6167 - uses : actions/checkout@v2
6268
6369 - name : Prepare
64- run : sudo apt update && sudo apt install -y valgrind
70+ run : sudo apt update && sudo apt install -y gcc cmake build-essential git libssl-dev
6571
6672 - name : Build TDengine
6773 run : sudo -E bash .github/script/build-tdengine.sh
@@ -131,11 +137,58 @@ jobs:
131137 ext-path : .
132138 tools-path : C:\tools\phpdev
133139 ext-name : tdengine
140+ enable-extension : 1
141+ - name : Test
142+ run : |
143+ php -m
144+ php --ri tdengine
145+
146+ test-tdengine-windows :
147+ name : Windows PHP-${{ matrix.php.version }} TDengine-${{ matrix.tdengine }}
148+ runs-on : ${{ matrix.php.runs-on }}
149+
150+ strategy :
151+ fail-fast : false
152+ matrix :
153+ php :
154+ - version : 8.1
155+ runs-on : windows-2019
156+ vs : 2019
157+ tdengine : ['3.0.0.1', '2.6.0.1']
158+
159+ env :
160+ TDENGINE_VERSION : ${{ matrix.tdengine }}
161+ VS_VERSION : ${{ matrix.php.vs }}
162+
163+ steps :
164+ - uses : actions/checkout@v2
165+
166+ - name : Download TDengine
167+ run : .github\script\download-tdengine.ps1
168+
169+ - name : Build TDengine
170+ shell : cmd
171+ run : .github\script\build-tdengine.bat
172+
173+ - name : Setup PHP
174+ uses : shivammathur/setup-php@v2
175+ with :
176+ php-version : ${{ matrix.php.version }}
177+ tools : pecl
178+ extensions : >
179+ :xdebug
180+ openssl, mbstring, json, sockets,
134181
135- # Windows 上无法运行 TDengine
136- # Docker 也无法运行在 WSL2 下
137- # - name: Test
138- # run: ./run-tests.ps1
182+ - name : Build extension
183+ uses : ./.github/workflows/winext
184+ with :
185+ ext-path : .
186+ tools-path : C:\tools\phpdev
187+ ext-name : tdengine
188+ - name : Test
189+ run : |
190+ php -m
191+ php --ri tdengine
139192
140193 # test-macos:
141194 # name: MacOS PHP-${{ matrix.php }} TDengine-${{ matrix.tdengine }} Swoole-${{ matrix.swoole }}
0 commit comments