• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Linux
2
3on:
4  # Trigger the workflow on push or pull requests, but only for the
5  # master branch
6  push:
7    branches:
8    - master
9    - '*/ci'
10  pull_request:
11    branches:
12    - master
13
14jobs:
15  autotools:
16    name: ${{ matrix.build.name }}
17    runs-on: 'ubuntu-latest'
18    timeout-minutes: 90
19    strategy:
20      fail-fast: false
21      matrix:
22        build:
23        - name: hyper
24          install:
25          configure: --with-openssl --with-hyper=$HOME/hyper
26
27    steps:
28    - run: sudo apt-get install libtool autoconf automake pkg-config
29      name: install prereqs
30
31    - run: (cd $HOME;
32        git clone --depth=1 https://github.com/hyperium/hyper.git;
33        curl https://sh.rustup.rs -sSf | sh -s -- -y;
34        source $HOME/.cargo/env;
35        cd $HOME/hyper;
36        RUSTFLAGS="--cfg hyper_unstable_ffi" cargo build --features client,http1,http2,ffi)
37      name: 'install hyper'
38
39    - uses: actions/checkout@v2
40
41    - run: ./buildconf && LDFLAGS="-Wl,-rpath,$HOME/hyper/target/debug" ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} && make
42      name: 'configure and build'
43
44    - run: make test-nonflaky
45      name: 'test'
46      env:
47        LD_LIBRARY_PATH: $HOME/hyper/target/debug:/usr/local/lib
48        TFLAGS: "${{ matrix.build.tflags }}"
49