-
Notifications
You must be signed in to change notification settings - Fork 3.2k
87 lines (83 loc) · 3.51 KB
/
ext.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: ext-swoole
on: [push, pull_request]
jobs:
build-ubuntu-latest:
if: "!contains(github.event.head_commit.message, '[test]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install-deps
run: sudo apt update -y && sudo apt install -y libcurl4-openssl-dev php-curl libc-ares-dev
- name: phpize
run: phpize
- name: build1
run: ./configure &&
make clean && make -j$(nproc)
- name: build2
run: ./configure --enable-sockets &&
make clean && make -j$(nproc)
- name: build3
run: ./configure --enable-sockets --enable-mysqlnd &&
make clean && make -j$(nproc)
- name: build5
run: ./configure --enable-sockets --enable-mysqlnd --enable-openssl &&
make clean && make -j$(nproc)
- name: build6
run: ./configure --enable-sockets --enable-mysqlnd --enable-openssl --enable-debug-log &&
make clean && make -j$(nproc)
- name: build7
run: ./configure --enable-sockets --enable-mysqlnd --enable-swoole-curl --enable-openssl --enable-debug-log &&
make clean && make -j$(nproc)
- name: build8
run: ./configure --enable-sockets --enable-mysqlnd --enable-swoole-curl --enable-openssl --enable-cares --enable-debug-log &&
make clean && make -j$(nproc)
- name: build with thread context
run: ./configure --enable-sockets --enable-mysqlnd --enable-swoole-curl --enable-openssl --enable-cares --enable-debug-log --enable-thread-context &&
make clean && make -j$(nproc)
build-macos-latest:
if: "!contains(github.event.head_commit.message, '[test]')"
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
- uses: actions/checkout@v3
- name: phpize
run: phpize
- name: build1
run: ./configure && make clean && make -j$(sysctl -n hw.ncpu)
- name: build2
run: ./configure --enable-sockets &&
make clean && make -j$(sysctl -n hw.ncpu)
- name: build3
run: ./configure --enable-sockets --enable-mysqlnd &&
make clean && make -j$(sysctl -n hw.ncpu)
- name: build5
run: ./configure --enable-sockets --enable-mysqlnd --enable-openssl
--with-openssl-dir=/usr/local/opt/openssl@1.1 &&
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 &&
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 &&
make clean && make -j$(sysctl -n hw.ncpu)
build-alpine-latest:
if: "!contains(github.event.head_commit.message, '[test]')"
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '8.0', '8.1' ]
alpine-version: [ '3.14', '3.15' ]
exclude:
- php-version: '8.1'
alpine-version: '3.15'
max-parallel: 8
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: build
run: |
cp .github/workflows/alpine.Dockerfile alpine.Dockerfile
docker build -t swoole . -f alpine.Dockerfile --build-arg PHP_VERSION=${{ matrix.php-version }} --build-arg ALPINE_VERSION=${{ matrix.alpine-version }}