Skip to content

Commit

Permalink
Added --enable-cares build for test (#4342)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Jul 29, 2021
1 parent a034cbc commit 067f594
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: install-deps
run: sudo apt update -y && sudo apt install -y libcurl4-openssl-dev php-curl
run: sudo apt update -y && sudo apt install -y libcurl4-openssl-dev php-curl libc-ares-dev
- name: phpize
run: phpize
- name: build1
Expand All @@ -32,13 +32,17 @@ jobs:
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-swoole-curl --enable-swoole-json
--enable-openssl --enable-debug-log &&
make clean && make -j$(sysctl -n hw.ncpu)
- name: build8
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-swoole-curl --enable-swoole-json
--enable-openssl --enable-cares --enable-debug-log &&
make clean && make -j$(sysctl -n hw.ncpu)

build-ubuntu-old:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: install-deps
run: sudo apt update -y && sudo apt install -y libcurl4-openssl-dev php-curl
run: sudo apt update -y && sudo apt install -y libcurl4-openssl-dev php-curl libc-ares-dev
- name: phpize
run: phpize
- name: build1
Expand All @@ -59,12 +63,16 @@ jobs:
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-swoole-curl --enable-swoole-json
--enable-openssl --enable-debug-log &&
make clean && make -j$(sysctl -n hw.ncpu)
- name: build7
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-swoole-curl --enable-swoole-json
--enable-openssl --enable-cares --enable-debug-log &&
make clean && make -j$(sysctl -n hw.ncpu)

build-macos-latest:
runs-on: macos-latest
steps:
- name: install dependencies
run: brew install openssl && brew link openssl && brew install curl && brew link curl
run: brew install openssl && brew link openssl && brew install curl && brew link curl && brew install c-ares && brew link c-ares
- uses: actions/checkout@v1
- name: phpize
run: phpize
Expand All @@ -87,6 +95,10 @@ jobs:
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-swoole-curl --enable-swoole-json
--enable-openssl --with-openssl-dir=/usr/local/opt/openssl@1.1 --enable-debug-log &&
make clean && make -j$(sysctl -n hw.ncpu)
- name: build7
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-swoole-curl --enable-swoole-json
--enable-openssl --with-openssl-dir=/usr/local/opt/openssl@1.1 --enable-cares --enable-debug-log &&
make clean && make -j$(sysctl -n hw.ncpu)

build-alpine-latest:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions travis/docker-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ fi

#-----------compile------------
#-------print error only-------
apt-get update -y
apt-get install -y libcurl4-openssl-dev libc-ares-dev
cd "${__DIR__}" && cd ../ && \
./clear.sh > /dev/null && \
phpize --clean > /dev/null && \
Expand Down

0 comments on commit 067f594

Please sign in to comment.