add CURLOPT_{,PROXY}_TLS13_CIPHERS
[m6w6/ext-http] / .github / workflows / ci.yml
index 0221ad8655275e73a2bc84d7a3d7ac9cdcfa1f8f..5e56d837a713d387c5985cd4e4c7f49989c568b6 100644 (file)
@@ -11,13 +11,15 @@ jobs:
     name: master-0
     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"
+    runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -28,31 +30,34 @@ 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
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -63,28 +68,31 @@ 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
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -95,28 +103,31 @@ 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
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -127,28 +138,31 @@ 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
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -159,28 +173,31 @@ 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
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -191,31 +208,34 @@ 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
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -226,17 +246,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: |
@@ -246,16 +267,18 @@ jobs:
   cur-cov-1:
     name: cur-cov-1
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -266,17 +289,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: |
@@ -286,16 +310,18 @@ jobs:
   cur-cov-2:
     name: cur-cov-2
     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
-        submodules: true
+        with:
+          submodules: true
       - name: Install
         run: |
           sudo apt-get install -y \
@@ -306,17 +332,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: |