From aebd7849a2e66eeda86e866bcba92a3f74914028 Mon Sep 17 00:00:00 2001 From: hantianfeng Date: Wed, 29 May 2024 14:35:15 +0800 Subject: [PATCH] fix ci --- .github/workflows/ext.yml | 16 +++++++++++++--- .github/workflows/framework.yml | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ext.yml b/.github/workflows/ext.yml index 6264c176cfa..93860e1597d 100644 --- a/.github/workflows/ext.yml +++ b/.github/workflows/ext.yml @@ -42,8 +42,18 @@ jobs: runs-on: macos-latest steps: - name: install dependencies - run: brew install openssl && brew link openssl && brew install curl && brew link curl && brew install c-ares && brew link c-ares + run: | + brew install openssl && brew link openssl + brew install curl && brew link curl + brew install c-ares && brew link c-ares - uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.1 + extensions: dom, curl, libxml, mbstring, zip, redis, pdo, pdo_mysql, bcmath + tools: phpize, composer:v2 + coverage: none - name: phpize run: phpize - name: build1 @@ -60,11 +70,11 @@ jobs: make clean && make -j$(sysctl -n hw.ncpu) - name: build6 run: ./configure --enable-sockets --enable-mysqlnd --enable-openssl --enable-swoole-curl --enable-debug-log - --with-openssl-dir=/usr/local/opt/openssl@1.1 && + --with-openssl-dir=/usr/local/opt/openssl@3 && make clean && make -j$(sysctl -n hw.ncpu) - name: build7 run: ./configure --enable-sockets --enable-mysqlnd --enable-openssl --enable-swoole-curl --enable-debug-log --enable-cares - --with-openssl-dir=/usr/local/opt/openssl@1.1 && + --with-openssl-dir=/usr/local/opt/openssl@3 && make clean && make -j$(sysctl -n hw.ncpu) build-alpine-latest: diff --git a/.github/workflows/framework.yml b/.github/workflows/framework.yml index cad986fc751..baf910fa4e6 100644 --- a/.github/workflows/framework.yml +++ b/.github/workflows/framework.yml @@ -122,6 +122,7 @@ jobs: run: | brew install openssl && brew link openssl brew install c-ares && brew link c-ares + brew install curl && brew link curl phpize ./configure --enable-openssl --with-openssl-dir=/usr/local/opt/openssl@3 --enable-mysqlnd --enable-swoole-curl --enable-cares make -j$(sysctl -n hw.ncpu)