Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Update version for Swoole-Ext 4.6.1 (#52)
Browse files Browse the repository at this point in the history
* Update version for Swoole-Ext 4.6.1

* try fix
  • Loading branch information
sy-records committed Jan 11, 2021
1 parent 024c7ae commit a33849d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ext-swoole_postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: build
run: phpize &&
./configure &&
make -j$(sysctl -n hw.ncpu) &&
make install &&
docker-php-ext-enable swoole_postgresql &&
run: |
apt-get update
apt-get install -y libpq-dev
phpize
./configure
make -j$(sysctl -n hw.ncpu)
make install
docker-php-ext-enable swoole_postgresql
php --ri swoole_postgresql
- name: composer
run: composer update
Expand Down
6 changes: 3 additions & 3 deletions swoole_postgresql_coro.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#include "ext/swoole/ext-src/php_swoole_cxx.h"
#include "config.h"

#define PHP_SWOOLE_EXT_POSTGRESQL_VERSION "4.5.7"
#define PHP_SWOOLE_EXT_POSTGRESQL_VERSION_ID 40507
#define PHP_SWOOLE_EXT_POSTGRESQL_VERSION "4.6.1"
#define PHP_SWOOLE_EXT_POSTGRESQL_VERSION_ID 40601

#if SWOOLE_API_VERSION_ID < 0x202011a
#if SWOOLE_API_VERSION_ID < 0x202012a
#error "Ext version does not match the Swoole version"
#endif

Expand Down

0 comments on commit a33849d

Please sign in to comment.