macos.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. name: CI
  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: macos ${{ matrix.build.name }}
  15. runs-on: 'macos-latest'
  16. strategy:
  17. fail-fast: false
  18. matrix:
  19. build:
  20. - name: normal
  21. install: nghttp2
  22. - name: debug
  23. install: nghttp2
  24. configure: --enable-debug --enable-werror --without-brotli --enable-mqtt
  25. - name: libssh2
  26. install: nghttp2 libssh2
  27. configure: --enable-debug --with-libssh2
  28. - name: c-ares
  29. install: nghttp2
  30. configure: --enable-debug --enable-ares
  31. - name: HTTP only
  32. install: nghttp2
  33. configure: --enable-debug --enable-werror --enable-maintainer-mode --disable-dict --disable-file --disable-ftp --disable-gopher --disable-imap --disable-ldap --disable-pop3 --disable-rtmp --disable-rtsp --disable-scp --disable-sftp --disable-smb --disable-smtp --disable-telnet --disable-tftp --disable-unix-sockets --disable-shared --without-brotli --without-gssapi --without-libidn2 --without-libmetalink --without-libpsl --without-librtmp --without-libssh2 --without-nghttp2 --without-ntlm-auth --without-ssl --without-zlib
  34. - name: SecureTransport metalink
  35. install: nghttp2 openssl libmetalink
  36. configure: --enable-debug --without-ssl --with-darwinssl --with-libmetalink
  37. - name: OpenSSL metalink
  38. install: nghttp2 openssl libmetalink
  39. configure: --enable-debug --with-ssl=/usr/local/opt/openssl --with-libmetalink
  40. - name: LibreSSL metalink
  41. install: nghttp2 libressl libmetalink
  42. configure: --enable-debug --with-ssl=/usr/local/opt/libressl --with-libmetalink
  43. - name: torture
  44. install: nghttp2 openssl
  45. configure: --enable-debug --disable-shared --disable-threaded-resolver --enable-alt-svc
  46. tflags: -n -t --shallow=25 !FTP
  47. steps:
  48. - uses: actions/checkout@v2
  49. - run: brew update && brew install libtool autoconf automake pkg-config ${{ matrix.build.install }}
  50. name: 'brew install'
  51. - run: ./buildconf && ./configure ${{ matrix.build.configure }}
  52. name: 'configure'
  53. - run: make
  54. name: 'make'
  55. - run: make test-nonflaky
  56. name: 'test'
  57. env:
  58. TFLAGS: "${{ matrix.build.tflags }} ~1452"
  59. cmake:
  60. name: macos cmake ${{ matrix.compiler.CC }} ${{ matrix.build.name }}
  61. runs-on: 'macos-latest'
  62. env: ${{ matrix.compiler }}
  63. strategy:
  64. fail-fast: false
  65. matrix:
  66. compiler:
  67. - CC: clang
  68. CXX: clang++
  69. - CC: gcc-8
  70. CXX: g++-8
  71. - CC: gcc-9
  72. CXX: g++-9
  73. build:
  74. - name: OpenSSL
  75. install: nghttp2 openssl
  76. generate: -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON
  77. - name: LibreSSL
  78. install: nghttp2 libressl
  79. generate: -DOPENSSL_ROOT_DIR=/usr/local/opt/libressl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON
  80. steps:
  81. - uses: actions/checkout@v2
  82. - run: brew update && brew install libtool autoconf automake pkg-config ${{ matrix.build.install }}
  83. name: 'brew install'
  84. - run: cmake -H. -Bbuild ${{ matrix.build.generate }}
  85. name: 'cmake generate'
  86. - run: cmake --build build
  87. name: 'cmake build'