Skip to content

Commit

Permalink
Fix github action (#86)
Browse files Browse the repository at this point in the history
pecl will open swoole in ini
  • Loading branch information
huanghantao authored Jan 31, 2021
1 parent 45eaa7b commit 2983306
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push, pull_request]
jobs:
build-yasd:
runs-on: ${{ matrix.os }}
env:
SWOOLE_VERSION: 4.5.6
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -32,7 +34,15 @@ jobs:
echo "`git log -10 --stat --pretty --oneline`"
- name: Install swoole
run: |
sudo pecl install swoole
wget https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz -O swoole.tar.gz
mkdir -p swoole
tar -xf swoole.tar.gz -C swoole --strip-components=1
rm swoole.tar.gz
cd swoole
phpize
./configure
make -j$(nproc)
sudo make install
- if: startsWith(runner.os, 'Linux')
name: Install dependencies on Linux
run: |
Expand Down

0 comments on commit 2983306

Please sign in to comment.