1
0

CI.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. name: CI
  2. on:
  3. push:
  4. paths-ignore:
  5. - '**.md'
  6. pull_request:
  7. paths-ignore:
  8. - '**.md'
  9. jobs:
  10. build-linux:
  11. name: build-linux
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v3
  15. - name: build
  16. run: |
  17. sudo apt update
  18. sudo apt install libssl-dev libnghttp2-dev
  19. ./configure --with-openssl --with-nghttp2 --with-kcp --with-mqtt
  20. make libhv evpp
  21. - name: test
  22. run: |
  23. make check
  24. make run-unittest
  25. build-windows:
  26. name: build-windows
  27. runs-on: windows-latest
  28. steps:
  29. - uses: actions/checkout@v3
  30. - name: build
  31. run: |
  32. mkdir cmake-build-win64
  33. cd cmake-build-win64
  34. cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release
  35. cmake --build . --config Release
  36. cd ..
  37. - name: test
  38. run: |
  39. cd cmake-build-win64
  40. start bin/Release/http_server_test
  41. bin/Release/http_client_test
  42. bin/Release/curl -v http://127.0.0.1:8080/ping
  43. bin/Release/wrk -c 100 -t 2 -d 10s http://127.0.0.1:8080/ping
  44. build-apple:
  45. name: build-apple
  46. runs-on: macos-latest
  47. steps:
  48. - uses: actions/checkout@v3
  49. - name: build-mac
  50. run: |
  51. ./configure
  52. make libhv evpp examples unittest
  53. - name: build-ios
  54. run: |
  55. mkdir cmake-build-ios
  56. cd cmake-build-ios
  57. cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS -DDEPLOYMENT_TARGET=9.0 -DARCHS="arm64"
  58. cmake --build . --target hv_static --config Release