From a33849d171b9b975e33133565936bf789df4c910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Mon, 11 Jan 2021 13:20:59 +0800 Subject: [PATCH] Update version for Swoole-Ext 4.6.1 (#52) * Update version for Swoole-Ext 4.6.1 * try fix --- .github/workflows/ext-swoole_postgresql.yml | 13 ++++++++----- swoole_postgresql_coro.h | 6 +++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ext-swoole_postgresql.yml b/.github/workflows/ext-swoole_postgresql.yml index 95ff354..9fabfa5 100644 --- a/.github/workflows/ext-swoole_postgresql.yml +++ b/.github/workflows/ext-swoole_postgresql.yml @@ -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 diff --git a/swoole_postgresql_coro.h b/swoole_postgresql_coro.h index 078d689..3f1ba3c 100644 --- a/swoole_postgresql_coro.h +++ b/swoole_postgresql_coro.h @@ -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