mirror of
https://github.com/curl/curl.git
synced 2026-05-15 03:26:20 +03:00
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:
parent
519e5e5f65
commit
498ecdfd64
14 changed files with 175 additions and 89 deletions
38
.github/workflows/linux-hyper.yml
vendored
38
.github/workflows/linux-hyper.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue