fix 5556, The TCP_INFO option for sockets is not available under Cygwin. #2
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: Compile Tests | |
on: [ push, pull_request ] | |
env: | |
CPPFLAGS: "-I/opt/homebrew/opt/pcre2/include/" | |
jobs: | |
build-ubuntu-latest: | |
if: "!contains(github.event.head_commit.message, '--filter=') || contains(github.event.head_commit.message, '[ext]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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, '--filter=') || contains(github.event.head_commit.message, '[macos]')" | |
runs-on: macos-latest | |
steps: | |
- name: install dependencies | |
run: brew reinstall php | |
- uses: actions/checkout@v4 | |
- name: phpize | |
run: phpize | |
- name: build1 | |
run: ./configure CPPFLAGS="${CPPFLAGS}" && make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build2 | |
run: ./configure CPPFLAGS="${CPPFLAGS}" --enable-sockets && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build3 | |
run: ./configure CPPFLAGS="${CPPFLAGS}" --enable-sockets --enable-mysqlnd && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build5 | |
run: ./configure CPPFLAGS="${CPPFLAGS}" --enable-sockets --enable-mysqlnd --enable-openssl && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build6 | |
run: ./configure CPPFLAGS="${CPPFLAGS}" --enable-sockets --enable-mysqlnd --enable-openssl | |
--enable-swoole-curl --enable-debug-log && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
- name: build7 | |
run: ./configure CPPFLAGS="${CPPFLAGS}" --enable-sockets --enable-mysqlnd --enable-openssl --enable-swoole-curl | |
--enable-debug-log --enable-cares && | |
make clean && make -j$(sysctl -n hw.ncpu) | |
build-alpine-latest: | |
if: "!contains(github.event.head_commit.message, '--filter=') || contains(github.event.head_commit.message, '[alpine]')" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [ '8.1', '8.2', '8.3', '8.4' ] | |
max-parallel: 8 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: | | |
cp .github/workflows/alpine.Dockerfile alpine.Dockerfile | |
docker build -t swoole . -f alpine.Dockerfile --build-arg PHP_VERSION=${{ matrix.php-version }} |