diff options
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/build_boringssl.sh | 10 | ||||
-rwxr-xr-x | ci/build_nghttp3.sh | 9 | ||||
-rwxr-xr-x | ci/build_openssl1.sh | 8 | ||||
-rwxr-xr-x | ci/build_openssl1_cross.sh | 9 | ||||
-rwxr-xr-x | ci/build_openssl3.sh | 8 | ||||
-rwxr-xr-x | ci/build_picotls.sh | 11 | ||||
-rwxr-xr-x | ci/build_wolfssl.sh | 9 | ||||
-rwxr-xr-x | ci/gen-certificate.sh | 8 |
8 files changed, 72 insertions, 0 deletions
diff --git a/ci/build_boringssl.sh b/ci/build_boringssl.sh new file mode 100755 index 0000000..1a1b77c --- /dev/null +++ b/ci/build_boringssl.sh @@ -0,0 +1,10 @@ +#!/bin/sh -e +# build boringssl (for GitHub workflow) + +git clone https://boringssl.googlesource.com/boringssl +cd boringssl +git checkout 31bad2514d21f6207f3925ba56754611c462a873 +mkdir build +cd build +cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. +make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" diff --git a/ci/build_nghttp3.sh b/ci/build_nghttp3.sh new file mode 100755 index 0000000..1e308ba --- /dev/null +++ b/ci/build_nghttp3.sh @@ -0,0 +1,9 @@ +#!/bin/sh -e +# build nghttp3 (for GitHub workflow) + +git clone https://github.com/ngtcp2/nghttp3 +cd nghttp3 +autoreconf -i +./configure --prefix=$PWD/build --enable-lib-only +make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" check +make install diff --git a/ci/build_openssl1.sh b/ci/build_openssl1.sh new file mode 100755 index 0000000..e350b36 --- /dev/null +++ b/ci/build_openssl1.sh @@ -0,0 +1,8 @@ +#!/bin/sh -e +# build patched openssl (for GitHub workflow) + +git clone --depth 1 -b OpenSSL_1_1_1s+quic https://github.com/quictls/openssl +cd openssl +./config --prefix=$PWD/build +make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" +make install_sw diff --git a/ci/build_openssl1_cross.sh b/ci/build_openssl1_cross.sh new file mode 100755 index 0000000..d11e365 --- /dev/null +++ b/ci/build_openssl1_cross.sh @@ -0,0 +1,9 @@ +#!/bin/sh -e +# build patched openssl (for GitHub workflow) for $HOST and $OSCC +# (os/compiler). + +git clone --depth 1 -b OpenSSL_1_1_1s+quic https://github.com/quictls/openssl +cd openssl +./Configure --cross-compile-prefix="$HOST"- --prefix=$PWD/build "$OSCC" +make -j$(nproc) +make install_sw diff --git a/ci/build_openssl3.sh b/ci/build_openssl3.sh new file mode 100755 index 0000000..0f517c6 --- /dev/null +++ b/ci/build_openssl3.sh @@ -0,0 +1,8 @@ +#!/bin/sh -e +# build patched openssl (for GitHub workflow) + +git clone --depth 1 -b openssl-3.0.7+quic https://github.com/quictls/openssl +cd openssl +./config --prefix=$PWD/build --openssldir=/etc/ssl +make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" +make install_sw diff --git a/ci/build_picotls.sh b/ci/build_picotls.sh new file mode 100755 index 0000000..3b85ff9 --- /dev/null +++ b/ci/build_picotls.sh @@ -0,0 +1,11 @@ +#!/bin/sh -e +# build picotls (for GitHub workflow) + +git clone https://github.com/h2o/picotls/ +cd picotls +git checkout 5e01b2b94dc77c500ed4fc0eaa77bd0cbe8e9274 +git submodule update --init +mkdir build +cd build +PKG_CONFIG_PATH=$PWD/../../openssl/build/lib/pkgconfig:$PWD/../../openssl/build/lib64/pkgconfig cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. +make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" diff --git a/ci/build_wolfssl.sh b/ci/build_wolfssl.sh new file mode 100755 index 0000000..3d179ed --- /dev/null +++ b/ci/build_wolfssl.sh @@ -0,0 +1,9 @@ +#!/bin/sh -e +# wolfssl (for GitHub workflow) + +git clone --depth 1 https://github.com/wolfSSL/wolfssl +cd wolfssl +autoreconf -i +./configure --prefix=$PWD/build --enable-all --enable-quic +make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" +make install diff --git a/ci/gen-certificate.sh b/ci/gen-certificate.sh new file mode 100755 index 0000000..e2c9e77 --- /dev/null +++ b/ci/gen-certificate.sh @@ -0,0 +1,8 @@ +#!/bin/sh -e +# Generate a self-signed certificate for testing purposes. + +mkdir -p cert +keyfile=cert/server.key +certfile=cert/server.crt + +openssl req -newkey rsa:2048 -x509 -nodes -keyout "$keyfile" -new -out "$certfile" -subj /CN=localhost |