fix make getting MIME type information is not case-sensitive #5114 (#β¦ #7215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ext-swoole | |
on: [push, pull_request] | |
jobs: | |
build-ubuntu-latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- 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$(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: build4 | |
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build5 | |
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-openssl && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build6 | |
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --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-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-18.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- 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$(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: build4 | |
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build5 | |
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --enable-openssl && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build6 | |
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 && brew install c-ares && brew link c-ares | |
- uses: actions/checkout@v1 | |
- 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: build4 | |
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build5 | |
run: ./configure --enable-sockets --enable-mysqlnd --enable-http2 --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-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 | |
strategy: | |
matrix: | |
php-version: [ '7.4', '8.0', '8.1' ] | |
alpine-version: [ '3.11', '3.12', '3.13', '3.14', '3.15' ] | |
exclude: | |
- php-version: '8.1' | |
alpine-version: '3.11' | |
max-parallel: 8 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- 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 }} |