X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=2ed701ca80b3919de6e3eb2c8ab8b8249444c67a;hb=6182cbb81110e28b44f724c401ce1b96b4582d6a;hp=5df865283131fa1f24147f2e2e5eb34821dd5046;hpb=96bb85e8a89faad9009afd8be9ee439bc7f48ce1;p=m6w6%2Fext-http diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5df8652..2ed701c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,51 @@ on: pull_request: jobs: - master-0: - name: master-0 + next-0: + name: "next-0 (8.1)" + env: + PHP: "8.1" + enable_debug: "yes" + enable_zts: "yes" + enable_iconv: "yes" + TEST_PHP_ARGS: "-d error_reporting=24575" + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Install + run: | + sudo apt-get install -y \ + php-cli \ + php-pear \ + libcurl4-openssl-dev \ + libidn11-dev \ + libidn2-0-dev \ + libicu-dev \ + libevent-dev \ + libbrotli-dev \ + re2c + - name: Prepare + run: | + make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php + make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master + - name: Build + run: | + make -f scripts/ci/Makefile ext PECL=http + - name: Test + run: | + make -f scripts/ci/Makefile test + + next-1: + name: "next-1 (master)" continue-on-error: true env: - PHP: master - enable_debug: yes - enable_zts: yes - enable_iconv: yes + PHP: "master" + enable_debug: "yes" + enable_zts: "yes" + enable_iconv: "yes" + TEST_PHP_ARGS: "-d error_reporting=24575" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -30,28 +67,29 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test cur-none-0: - name: cur-none-0 + name: "cur-none-0 (8.0)" env: - PHP: 8.0 - with_http_libicu_dir: no - with_http_libidn_dir: no - with_http_libidn2_dir: no - with_http_libcurl_dir: no - with_http_libevent_dir: no - with_http_libbrotli_dir: no + PHP: "8.0" + with_http_libicu_dir: "no" + with_http_libidn_dir: "no" + with_http_libidn2_dir: "no" + with_http_libcurl_dir: "no" + with_http_libevent_dir: "no" + with_http_libbrotli_dir: "no" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -67,25 +105,26 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test cur-dbg-zts-0: - name: cur-dbg-zts-0 + name: "cur-dbg-zts-0 (8.0)" env: - PHP: 8.0 - enable_debug: yes - enable_zts: yes - enable_iconv: yes + PHP: "8.0" + enable_debug: "yes" + enable_zts: "yes" + enable_iconv: "yes" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -101,25 +140,26 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test cur-dbg-zts-1: - name: cur-dbg-zts-1 + name: "cur-dbg-zts-1 (8.0)" env: - PHP: 8.0 - enable_debug: no - enable_zts: yes - enable_iconv: yes + PHP: "8.0" + enable_debug: "no" + enable_zts: "yes" + enable_iconv: "yes" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -135,25 +175,26 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test cur-dbg-zts-2: - name: cur-dbg-zts-2 + name: "cur-dbg-zts-2 (8.0)" env: - PHP: 8.0 - enable_debug: yes - enable_zts: no - enable_iconv: yes + PHP: "8.0" + enable_debug: "yes" + enable_zts: "no" + enable_iconv: "yes" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -169,25 +210,26 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test cur-dbg-zts-3: - name: cur-dbg-zts-3 + name: "cur-dbg-zts-3 (8.0)" env: - PHP: 8.0 - enable_debug: no - enable_zts: no - enable_iconv: yes + PHP: "8.0" + enable_debug: "no" + enable_zts: "no" + enable_iconv: "yes" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -203,28 +245,29 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test cur-cov-0: - name: cur-cov-0 + name: "cur-cov-0 (8.0)" env: - CFLAGS: '-O0 -g --coverage' - CXXFLAGS: '-O0 -g --coverage' - PHP: 8.0 - enable_iconv: yes - with_http_libicu_dir: yes - with_http_libidn_dir: no - with_http_libidn2_dir: no + CFLAGS: "-O0 -g --coverage" + CXXFLAGS: "-O0 -g --coverage" + PHP: "8.0" + enable_iconv: "yes" + with_http_libicu_dir: "yes" + with_http_libidn_dir: "no" + with_http_libidn2_dir: "no" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -240,17 +283,18 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test - name: Coverage if: success() run: | @@ -258,15 +302,15 @@ jobs: bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy cur-cov-1: - name: cur-cov-1 + name: "cur-cov-1 (8.0)" env: - CFLAGS: '-O0 -g --coverage' - CXXFLAGS: '-O0 -g --coverage' - PHP: 8.0 - enable_iconv: yes - with_http_libicu_dir: no - with_http_libidn_dir: yes - with_http_libidn2_dir: no + CFLAGS: "-O0 -g --coverage" + CXXFLAGS: "-O0 -g --coverage" + PHP: "8.0" + enable_iconv: "yes" + with_http_libicu_dir: "no" + with_http_libidn_dir: "yes" + with_http_libidn2_dir: "no" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -282,17 +326,18 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test - name: Coverage if: success() run: | @@ -300,15 +345,15 @@ jobs: bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy cur-cov-2: - name: cur-cov-2 + name: "cur-cov-2 (8.0)" env: - CFLAGS: '-O0 -g --coverage' - CXXFLAGS: '-O0 -g --coverage' - PHP: 8.0 - enable_iconv: yes - with_http_libicu_dir: no - with_http_libidn_dir: no - with_http_libidn2_dir: yes + CFLAGS: "-O0 -g --coverage" + CXXFLAGS: "-O0 -g --coverage" + PHP: "8.0" + enable_iconv: "yes" + with_http_libicu_dir: "no" + with_http_libidn_dir: "no" + with_http_libidn2_dir: "yes" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -324,17 +369,18 @@ jobs: libidn2-0-dev \ libicu-dev \ libevent-dev \ - libbrotli-dev + libbrotli-dev \ + re2c - name: Prepare run: | make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master - name: Build run: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test - name: Coverage if: success() run: |