GHA: align all install, configure and build steps again

First step towards more unified build steps on GitHub Actions.

Closes #8873
This commit is contained in:
Marc Hoersken 2022-05-18 00:03:16 +02:00
Родитель 519e5e5f65
Коммит 498ecdfd64
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 61E03CBED7BC859E
14 изменённых файлов: 175 добавлений и 89 удалений

31
.github/workflows/bearssl.yml поставляемый
Просмотреть файл

@ -21,17 +21,18 @@ jobs:
matrix:
build:
- name: bearssl
install:
configure: --with-bearssl=$HOME/bear --enable-debug --enable-werror
- name: clang-bearssl
install:
configure: CC=clang --with-bearssl=$HOME/bear --enable-debug --enable-werror
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
configure: LDFLAGS="-Wl,-rpath,$HOME/bear/lib" --with-bearssl=$HOME/bear --enable-debug
- name: bearssl-clang
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev clang
configure: CC=clang LDFLAGS="-Wl,-rpath,$HOME/bear/lib" --with-bearssl=$HOME/bear --enable-debug
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config clang stunnel4 libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- run: |
curl -LO https://bearssl.org/bearssl-0.6.tar.gz
@ -41,13 +42,21 @@ jobs:
mkdir -p $HOME/bear/lib $HOME/bear/include
cp inc/*.h $HOME/bear/include
cp build/libbearssl.* $HOME/bear/lib
name: 'get, build and install bearssl'
name: 'install bearssl'
- uses: actions/checkout@v3
- run: autoreconf -fi && LDFLAGS="-Wl,-rpath,$HOME/bear/lib" ./configure --enable-warnings --enable-werror --enable-headers-api ${{ matrix.build.configure }} && make V=1
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --enable-headers-api
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'

2
.github/workflows/codeql-analysis.yml поставляемый
Просмотреть файл

@ -1,4 +1,4 @@
name: codeql
name: CodeQL
on:
# Trigger the workflow on push or pull requests, but only for the

26
.github/workflows/event-based.yml поставляемый
Просмотреть файл

@ -1,4 +1,4 @@
name: event-based
name: Linux
on:
# Trigger the workflow on push or pull requests, but only for the
@ -20,21 +20,31 @@ jobs:
fail-fast: false
matrix:
build:
- name: event tests
install:
configure: --enable-debug --disable-shared --disable-threaded-resolver --enable-werror --with-libssh --with-openssl
- name: event-based
install: libpsl-dev libbrotli-dev libzstd-dev libssh-dev
configure: --enable-debug --disable-shared --disable-threaded-resolver --with-libssh --with-openssl
tflags: -n -e '!TLS-SRP'
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config stunnel4 libpsl-dev libbrotli-dev libzstd-dev libssh-dev
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- uses: actions/checkout@v3
- run: autoreconf -fi && ./configure ${{ matrix.build.configure }} && make V=1
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'

3
.github/workflows/linkcheck.yml поставляемый
Просмотреть файл

@ -1,5 +1,3 @@
# Docs: https://github.com/marketplace/actions/markdown-link-check
name: Markdown links
on:
@ -14,6 +12,7 @@ on:
- master
jobs:
# Docs: https://github.com/marketplace/actions/markdown-link-check
check:
runs-on: ubuntu-latest
steps:

38
.github/workflows/linux-hyper.yml поставляемый
Просмотреть файл

@ -22,29 +22,41 @@ jobs:
build:
- name: hyper
install:
configure: --with-openssl --with-hyper=$HOME/hyper --enable-headers-api
configure: LDFLAGS="-Wl,-rpath,$HOME/hyper/target/debug" --with-openssl --with-hyper=$HOME/hyper --enable-debug --enable-headers-api
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- run: (cd $HOME;
git clone --depth=1 https://github.com/hyperium/hyper.git;
curl https://sh.rustup.rs -sSf | sh -s -- -y;
source $HOME/.cargo/env;
rustup toolchain install nightly;)
name: install rust
- run: |
cd $HOME
git clone --depth=1 https://github.com/hyperium/hyper.git
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup toolchain install nightly
name: 'install rust'
- run: (cd $HOME/hyper;
RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib)
- run: |
cd $HOME/hyper
RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib
name: 'install hyper'
- uses: actions/checkout@v3
- run: autoreconf -fi && LDFLAGS="-Wl,-rpath,$HOME/hyper/target/debug" ./configure --enable-debug --enable-werror ${{ matrix.build.configure }} && make V=1
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'

10
.github/workflows/macos.yml поставляемый
Просмотреть файл

@ -89,8 +89,11 @@ jobs:
- uses: actions/checkout@v3
- run: autoreconf -fi && ./configure --enable-warnings --enable-werror --enable-headers-api ${{ matrix.build.configure }}
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --enable-headers-api
name: 'configure'
env:
# -Wvla is caused by brotli
CFLAGS: "-Wno-vla -mmacosx-version-min=${{ matrix.build.macosx-version-min }}"
@ -98,6 +101,9 @@ jobs:
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'
env:

28
.github/workflows/mbedtls.yml поставляемый
Просмотреть файл

@ -21,17 +21,18 @@ jobs:
matrix:
build:
- name: mbedtls
install:
configure: --with-mbedtls=$HOME/mbed --enable-debug --enable-werror
- name: clang-mbedtls
install:
configure: CC=clang --with-mbedtls=$HOME/mbed --enable-debug --enable-werror
install: libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev
configure: LDFLAGS="-Wl,-rpath,$HOME/mbed/lib" --with-mbedtls=$HOME/mbed --enable-debug
- name: mbedtls-clang
install: libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev clang
configure: CC=clang LDFLAGS="-Wl,-rpath,$HOME/mbed/lib" --with-mbedtls=$HOME/mbed --enable-debug
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config clang stunnel4 libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- run: |
git clone --depth=1 -b v3.1.0 https://github.com/ARMmbed/mbedtls
@ -42,8 +43,17 @@ jobs:
- uses: actions/checkout@v3
- run: autoreconf -fi && LDFLAGS="-Wl,-rpath,$HOME/mbed/lib" ./configure --enable-warnings --enable-werror --enable-headers-api ${{ matrix.build.configure }} && make V=1
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --enable-headers-api
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'

26
.github/workflows/msh3.yml поставляемый
Просмотреть файл

@ -21,14 +21,15 @@ jobs:
matrix:
build:
- name: msh3
install:
configure: --with-msh3=$HOME/msh3 --enable-debug --enable-werror --with-openssl=$HOME/quictls
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
configure: LDFLAGS="-Wl,-rpath,$HOME/msh3/lib -Wl,-rpath,$HOME/quictls/lib" --with-msh3=$HOME/msh3 --enable-debug --enable-werror --with-openssl=$HOME/quictls
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config clang stunnel4 libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- run: |
git clone --depth 1 -b OpenSSL_1_1_1j+quic https://github.com/quictls/openssl ossl
@ -36,7 +37,7 @@ jobs:
./config enable-tls1_3 --prefix=$HOME/quictls
make
make install_sw
name: 'build and install quictls'
name: 'install quictls'
- run: |
git clone --depth 1 --recursive https://github.com/nibanks/msh3
@ -44,12 +45,21 @@ jobs:
cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$HOME/msh3 ..
cmake --build .
cmake --install .
name: 'build and install msh3'
name: 'install msh3'
- uses: actions/checkout@v3
- run: autoreconf -fi && LDFLAGS="-Wl,-rpath,$HOME/msh3/lib -Wl,-rpath,$HOME/quictls/lib" ./configure --enable-warnings --enable-werror --enable-headers-api ${{ matrix.build.configure }} && make V=1
name: 'configure and build curl'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --enable-headers-api
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'

10
.github/workflows/nss.yml поставляемый
Просмотреть файл

@ -21,22 +21,22 @@ jobs:
matrix:
build:
- name: NSS
install:
configure: --with-nss --enable-debug --enable-werror --with-nss-deprecated --enable-headers-api
install: clang-9 libnss3-dev libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev nss-plugin-pem
configure: CC=clang-9 CPPFLAGS="-isystem /usr/include/nss" --with-nss --enable-debug --with-nss-deprecated --enable-headers-api
steps:
- run: |
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 libnss3-dev clang-9 libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev nss-plugin-pem
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- uses: actions/checkout@v3
- run: autoreconf -fi
name: 'autoreconf'
- run: CC=clang-9 CPPFLAGS="-isystem /usr/include/nss" ./configure ${{ matrix.build.configure }}
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
name: 'configure with clang'
- run: make V=1

30
.github/workflows/openssl3.yml поставляемый
Просмотреть файл

@ -21,29 +21,39 @@ jobs:
matrix:
build:
- name: openssl3
install:
configure: --with-openssl=$HOME/openssl3 --enable-debug --enable-werror
- name: clang-openssl3
install:
configure: CC=clang --with-openssl=$HOME/openssl3 --enable-debug --enable-werror
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
configure: LDFLAGS="-Wl,-rpath,$HOME/openssl3/lib64" --with-openssl=$HOME/openssl3 --enable-debug
- name: openssl3-clang
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev clang
configure: CC=clang LDFLAGS="-Wl,-rpath,$HOME/openssl3/lib64" --with-openssl=$HOME/openssl3 --enable-debug
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config clang stunnel4 libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- run: |
git clone --depth=1 https://github.com/openssl/openssl
cd openssl
./config enable-tls1_3 --prefix=$HOME/openssl3
make && make install_sw
name: 'build and install openssl3'
name: 'install openssl3'
- uses: actions/checkout@v3
- run: autoreconf -fi && LDFLAGS="-Wl,-rpath,$HOME/openssl3/lib64" ./configure --enable-warnings --enable-werror --enable-headers-api ${{ matrix.build.configure }} && make V=1
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --enable-headers-api
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'

22
.github/workflows/rustls.yml поставляемый
Просмотреть файл

@ -21,14 +21,15 @@ jobs:
matrix:
build:
- name: rustls
install:
configure: --with-rustls=$HOME/rustls --enable-debug --enable-werror --enable-headers-api
install: libpsl-dev libbrotli-dev libzstd-dev
configure: --with-rustls=$HOME/rustls --enable-debug
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config libpsl-dev libbrotli-dev libzstd-dev stunnel4
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- run: |
git clone --depth=1 --recursive https://github.com/rustls/rustls-ffi.git -b v0.8.2
@ -41,8 +42,17 @@ jobs:
- uses: actions/checkout@v3
- run: autoreconf -fi && ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} && make V=1
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --enable-headers-api
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'

22
.github/workflows/wolfssl.yml поставляемый
Просмотреть файл

@ -22,18 +22,19 @@ jobs:
build:
- name: wolfssl (configured with --enable-all)
install:
configure: LDFLAGS="-Wl,-rpath,$HOME/wssl/lib" --with-wolfssl=$HOME/wssl --enable-debug
wolfssl-configure: --enable-all
curl-configure: --with-wolfssl=$HOME/wssl --enable-debug --enable-werror
- name: wolfssl (configured with --enable-opensslextra)
install:
configure: LDFLAGS="-Wl,-rpath,$HOME/wssl/lib" --with-wolfssl=$HOME/wssl --enable-debug
wolfssl-configure: --enable-opensslextra
curl-configure: --with-wolfssl=$HOME/wssl --enable-debug --enable-werror
steps:
- run: |
sudo apt-get install libtool autoconf automake pkg-config stunnel4
sudo apt-get update
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
sudo python3 -m pip install impacket
name: install prereqs and impacket
name: 'install prereqs and impacket'
- run: |
curl -LO https://github.com/wolfSSL/wolfssl/archive/v5.0.0-stable.tar.gz
@ -46,8 +47,17 @@ jobs:
- uses: actions/checkout@v3
- run: autoreconf -fi && LDFLAGS="-Wl,-rpath,$HOME/wssl/lib" ./configure --enable-warnings --enable-werror --enable-headers-api ${{ matrix.build.curl-configure }} && make V=1
name: 'configure and build'
- run: autoreconf -fi
name: 'autoreconf'
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --enable-headers-api
name: 'configure'
- run: make V=1
name: 'make'
- run: make V=1 examples
name: 'make examples'
- run: make V=1 test-ci
name: 'test'