summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:30:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:30:55 +0000
commit17e81f2cd1843f01838245eae7b5ed5edf83d6be (patch)
treea0f685dff11ce5a2dc546a7b46a48bae5d1c0140 /ci
parentInitial commit. (diff)
downloadngtcp2-upstream.tar.xz
ngtcp2-upstream.zip
Adding upstream version 0.12.1+dfsg.upstream/0.12.1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xci/build_boringssl.sh10
-rwxr-xr-xci/build_nghttp3.sh9
-rwxr-xr-xci/build_openssl1.sh8
-rwxr-xr-xci/build_openssl1_cross.sh9
-rwxr-xr-xci/build_openssl3.sh8
-rwxr-xr-xci/build_picotls.sh11
-rwxr-xr-xci/build_wolfssl.sh9
-rwxr-xr-xci/gen-certificate.sh8
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