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
parent 519e5e5f65
commit 498ecdfd64
No known key found for this signature in database
GPG key ID: 61E03CBED7BC859E
14 changed files with 175 additions and 89 deletions

View file

@ -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'