2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-08-17 20:07:44 +08:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
|
|
|
name: ngtcp2
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- '*/ci'
|
2022-12-28 22:57:36 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
2023-03-25 09:10:08 +08:00
|
|
|
- '**/CMakeLists.txt'
|
2023-03-11 08:58:21 +08:00
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
|
|
|
- 'appveyor.yml'
|
2023-03-25 09:10:08 +08:00
|
|
|
- 'CMake/**'
|
2023-03-11 08:58:21 +08:00
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2022-08-17 20:07:44 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-12-28 22:57:36 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
2023-03-25 09:10:08 +08:00
|
|
|
- '**/CMakeLists.txt'
|
2023-03-11 08:58:21 +08:00
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
|
|
|
- 'appveyor.yml'
|
2023-03-25 09:10:08 +08:00
|
|
|
- 'CMake/**'
|
2023-03-11 08:58:21 +08:00
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2022-08-17 20:07:44 +08:00
|
|
|
|
2022-09-18 05:45:32 +08:00
|
|
|
concurrency:
|
|
|
|
# Hardcoded workflow filename as workflow name above is just Linux again
|
|
|
|
group: ngtcp2-gnutls-${{ github.event.pull_request.number || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-11-16 22:55:33 +08:00
|
|
|
permissions: {}
|
|
|
|
|
2022-08-17 20:07:44 +08:00
|
|
|
jobs:
|
|
|
|
autotools:
|
|
|
|
name: ${{ matrix.build.name }}
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
timeout-minutes: 60
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
build:
|
|
|
|
- name: gnutls
|
2022-11-29 23:41:15 +08:00
|
|
|
install: >-
|
|
|
|
libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev
|
|
|
|
nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin
|
|
|
|
libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools
|
|
|
|
texinfo texlive texlive-extra-utils autopoint libev-dev
|
|
|
|
configure: >-
|
|
|
|
PKG_CONFIG_PATH="$HOME/all/lib/pkgconfig" LDFLAGS="-Wl,-rpath,$HOME/all/lib"
|
|
|
|
--with-ngtcp2=$HOME/all --enable-warnings --enable-werror --enable-debug
|
|
|
|
--with-test-nghttpx="$HOME/all/bin/nghttpx"
|
|
|
|
ngtcp2-configure: >-
|
|
|
|
--prefix=$HOME/all PKG_CONFIG_PATH="$HOME/all/lib/pkgconfig" --enable-lib-only
|
|
|
|
gnutls-configure: >-
|
|
|
|
PKG_CONFIG_PATH="$HOME/all/lib/pkgconfig" LDFLAGS="-Wl,-rpath,$HOME/all/lib -L$HOME/all/lib"
|
|
|
|
--with-included-libtasn1 --with-included-unistring
|
|
|
|
--disable-guile --disable-doc --disable-tests --disable-tools
|
2022-08-17 20:07:44 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- run: |
|
|
|
|
sudo apt-get update
|
2022-09-02 04:44:43 +08:00
|
|
|
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
|
2023-03-09 17:50:55 +08:00
|
|
|
sudo apt-get install apache2 apache2-dev
|
|
|
|
sudo python3 -m pip install impacket pytest cryptography multipart
|
|
|
|
name: 'install prereqs and impacket, pytest, crypto'
|
2022-08-17 20:07:44 +08:00
|
|
|
|
2022-11-29 23:41:15 +08:00
|
|
|
- run: |
|
2023-02-09 16:22:39 +08:00
|
|
|
git clone --depth=1 -b openssl-3.0.8+quic https://github.com/quictls/openssl
|
2022-11-29 23:41:15 +08:00
|
|
|
cd openssl
|
|
|
|
./config --prefix=$HOME/all --libdir=$HOME/all/lib
|
|
|
|
make install_sw
|
|
|
|
name: 'install quictls'
|
|
|
|
|
2022-08-17 20:07:44 +08:00
|
|
|
- run: |
|
|
|
|
git clone --depth=1 https://gitlab.com/gnutls/nettle.git
|
|
|
|
cd nettle
|
|
|
|
./.bootstrap
|
|
|
|
./configure LDFLAGS="-Wl,-rpath,$HOME/all/lib" ${{ matrix.build.nettle-configure }} --prefix=$HOME/all --libdir=$HOME/all/lib --disable-documentation
|
2022-09-12 06:04:32 +08:00
|
|
|
make install
|
2022-08-17 20:07:44 +08:00
|
|
|
name: 'install nettle'
|
|
|
|
|
|
|
|
- run: |
|
2023-02-14 18:27:31 +08:00
|
|
|
git clone --depth=1 -b 3.8.0 https://github.com/gnutls/gnutls.git
|
2022-08-17 20:07:44 +08:00
|
|
|
cd gnutls
|
|
|
|
./bootstrap
|
2022-11-29 23:41:15 +08:00
|
|
|
./configure ${{ matrix.build.gnutls-configure }} --prefix=$HOME/all
|
2022-09-12 06:04:32 +08:00
|
|
|
make install
|
2022-08-17 20:07:44 +08:00
|
|
|
name: 'install gnutls'
|
|
|
|
|
|
|
|
- run: |
|
2023-01-08 14:58:54 +08:00
|
|
|
git clone --depth=1 -b v0.8.0 https://github.com/ngtcp2/nghttp3
|
2022-08-17 20:07:44 +08:00
|
|
|
cd nghttp3
|
|
|
|
autoreconf -fi
|
2022-11-29 23:41:15 +08:00
|
|
|
./configure --prefix=$HOME/all PKG_CONFIG_PATH="$HOME/all/lib/pkgconfig" --enable-lib-only
|
2022-09-12 06:04:32 +08:00
|
|
|
make install
|
2022-08-17 20:07:44 +08:00
|
|
|
name: 'install nghttp3'
|
|
|
|
|
|
|
|
- run: |
|
2023-02-13 20:40:30 +08:00
|
|
|
git clone --depth=1 -b v0.13.1 https://github.com/ngtcp2/ngtcp2
|
2022-08-17 20:07:44 +08:00
|
|
|
cd ngtcp2
|
|
|
|
autoreconf -fi
|
2022-11-29 23:41:15 +08:00
|
|
|
./configure ${{ matrix.build.ngtcp2-configure }} --with-openssl --with-gnutls
|
2022-09-12 06:04:32 +08:00
|
|
|
make install
|
2022-08-17 20:07:44 +08:00
|
|
|
name: 'install ngtcp2'
|
|
|
|
|
2022-11-29 23:41:15 +08:00
|
|
|
- run: |
|
2023-02-13 20:40:30 +08:00
|
|
|
git clone --depth=1 -b v1.52.0 https://github.com/nghttp2/nghttp2
|
2022-11-29 23:41:15 +08:00
|
|
|
cd nghttp2
|
|
|
|
autoreconf -fi
|
|
|
|
./configure --prefix=$HOME/all PKG_CONFIG_PATH="$HOME/all/lib/pkgconfig" --enable-http3
|
|
|
|
make install
|
|
|
|
name: 'install nghttp2'
|
|
|
|
|
2023-03-09 17:50:55 +08:00
|
|
|
- run: |
|
|
|
|
git clone --depth=1 -b master https://github.com/icing/mod_h2
|
|
|
|
cd mod_h2
|
|
|
|
autoreconf -fi
|
|
|
|
./configure PKG_CONFIG_PATH="$HOME/all/lib/pkgconfig"
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
name: 'install mod_h2'
|
|
|
|
|
2022-08-17 20:07:44 +08:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- run: autoreconf -fi
|
|
|
|
name: 'autoreconf'
|
|
|
|
|
2022-11-29 23:41:15 +08:00
|
|
|
- run: ./configure --with-gnutls=$HOME/all ${{ matrix.build.configure }}
|
2022-08-17 20:07:44 +08:00
|
|
|
name: 'configure'
|
|
|
|
|
|
|
|
- run: make V=1
|
|
|
|
name: 'make'
|
|
|
|
|
|
|
|
- run: make V=1 examples
|
|
|
|
name: 'make examples'
|
|
|
|
|
2022-09-29 18:26:04 +08:00
|
|
|
- run: make V=1 -C tests
|
|
|
|
name: 'make tests'
|
|
|
|
|
2022-08-17 20:07:44 +08:00
|
|
|
- run: make V=1 test-ci
|
2022-09-29 18:26:04 +08:00
|
|
|
name: 'run tests'
|
2022-08-17 20:07:44 +08:00
|
|
|
env:
|
|
|
|
TFLAGS: "${{ matrix.build.tflags }}"
|
2023-03-09 17:50:55 +08:00
|
|
|
|
|
|
|
- run: pytest -v
|
|
|
|
name: 'run pytest'
|
|
|
|
env:
|
|
|
|
TFLAGS: "${{ matrix.build.tflags }}"
|