linux-hyper.yml 1.3 KB

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