2021-06-07 20:57:14 +08:00
|
|
|
name: macOS
|
2020-04-10 06:59:35 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
# Trigger the workflow on push or pull requests, but only for the
|
|
|
|
# master branch
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- '*/ci'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
autotools:
|
2021-06-07 20:57:14 +08:00
|
|
|
name: ${{ matrix.build.name }}
|
2020-04-10 06:59:35 +08:00
|
|
|
runs-on: 'macos-latest'
|
2021-06-02 19:19:36 +08:00
|
|
|
timeout-minutes: 90
|
2020-04-10 06:59:35 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
build:
|
|
|
|
- name: normal
|
|
|
|
install: nghttp2
|
2021-04-15 15:21:40 +08:00
|
|
|
configure: --without-ssl
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.9
|
2020-04-10 06:59:35 +08:00
|
|
|
- name: debug
|
|
|
|
install: nghttp2
|
2021-04-15 15:21:40 +08:00
|
|
|
configure: --enable-debug --without-ssl
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.9
|
2020-04-10 06:59:35 +08:00
|
|
|
- name: libssh2
|
|
|
|
install: nghttp2 libssh2
|
2021-04-15 15:21:40 +08:00
|
|
|
configure: --enable-debug --with-libssh2 --without-ssl
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.9
|
2020-04-10 06:59:35 +08:00
|
|
|
- name: c-ares
|
|
|
|
install: nghttp2
|
2021-04-15 15:21:40 +08:00
|
|
|
configure: --enable-debug --enable-ares --without-ssl
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.9
|
2020-04-10 06:59:35 +08:00
|
|
|
- name: HTTP only
|
|
|
|
install: nghttp2
|
2021-06-01 22:24:00 +08:00
|
|
|
configure: --enable-debug --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-libpsl --without-librtmp --without-libssh2 --without-nghttp2 --without-ntlm-auth --without-ssl --without-zlib
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.15
|
2021-06-01 22:24:00 +08:00
|
|
|
- name: SecureTransport http2
|
|
|
|
install: nghttp2
|
|
|
|
configure: --enable-debug --with-secure-transport
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.8
|
2021-06-01 22:24:00 +08:00
|
|
|
- name: OpenSSL http2
|
|
|
|
install: nghttp2 openssl
|
|
|
|
configure: --enable-debug --with-openssl=/usr/local/opt/openssl
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.9
|
2021-06-01 22:24:00 +08:00
|
|
|
- name: LibreSSL http2
|
|
|
|
install: nghttp2 libressl
|
|
|
|
configure: --enable-debug --with-openssl=/usr/local/opt/libressl
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.9
|
2020-04-10 06:59:35 +08:00
|
|
|
- name: torture
|
2020-12-16 17:44:29 +08:00
|
|
|
install: nghttp2 openssl
|
2021-04-15 15:21:40 +08:00
|
|
|
configure: --enable-debug --disable-shared --disable-threaded-resolver --with-openssl=/usr/local/opt/openssl
|
2020-04-10 06:59:35 +08:00
|
|
|
tflags: -n -t --shallow=25 !FTP
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.9
|
2021-03-12 18:55:47 +08:00
|
|
|
- name: torture-ftp
|
|
|
|
install: nghttp2 openssl
|
2021-04-15 15:21:40 +08:00
|
|
|
configure: --enable-debug --disable-shared --disable-threaded-resolver --with-openssl=/usr/local/opt/openssl
|
2021-03-12 18:55:47 +08:00
|
|
|
tflags: -n -t --shallow=20 FTP
|
|
|
|
macosx-version-min: 10.9
|
2020-07-15 16:03:15 +08:00
|
|
|
- name: macOS 10.15
|
2021-06-01 22:24:00 +08:00
|
|
|
install: nghttp2 libssh2 openssl
|
2021-04-15 15:21:40 +08:00
|
|
|
configure: --enable-debug --disable-ldap --with-openssl=/usr/local/opt/openssl
|
2020-07-15 16:03:15 +08:00
|
|
|
macosx-version-min: 10.15
|
2020-04-10 06:59:35 +08:00
|
|
|
steps:
|
2020-06-04 01:58:14 +08:00
|
|
|
- run: echo libtool autoconf automake pkg-config ${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
|
|
|
|
name: 'brew bundle'
|
2020-04-10 06:59:35 +08:00
|
|
|
|
2020-06-04 01:58:14 +08:00
|
|
|
- run: brew update && brew bundle install --no-lock --file /tmp/Brewfile
|
2020-04-10 06:59:35 +08:00
|
|
|
name: 'brew install'
|
|
|
|
|
2020-06-04 01:58:14 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-07-15 16:48:44 +08:00
|
|
|
- run: ./buildconf && ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
|
2020-04-10 06:59:35 +08:00
|
|
|
name: 'configure'
|
2020-07-15 16:48:44 +08:00
|
|
|
env:
|
|
|
|
# -Wvla is caused by brotli
|
2020-07-15 16:03:15 +08:00
|
|
|
CFLAGS: "-Wno-vla -mmacosx-version-min=${{ matrix.build.macosx-version-min }}"
|
2020-04-10 06:59:35 +08:00
|
|
|
|
|
|
|
- run: make
|
|
|
|
name: 'make'
|
|
|
|
|
|
|
|
- run: make test-nonflaky
|
|
|
|
name: 'test'
|
|
|
|
env:
|
|
|
|
TFLAGS: "${{ matrix.build.tflags }} ~1452"
|
|
|
|
|
|
|
|
cmake:
|
2021-06-07 20:57:14 +08:00
|
|
|
name: cmake ${{ matrix.compiler.CC }} ${{ matrix.build.name }}
|
2020-04-10 06:59:35 +08:00
|
|
|
runs-on: 'macos-latest'
|
|
|
|
env: ${{ matrix.compiler }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
compiler:
|
|
|
|
- CC: clang
|
|
|
|
CXX: clang++
|
2021-05-17 19:20:54 +08:00
|
|
|
CFLAGS: "-mmacosx-version-min=10.15 -Wno-deprecated-declarations"
|
2020-04-10 06:59:35 +08:00
|
|
|
- CC: gcc-9
|
|
|
|
CXX: g++-9
|
2020-07-15 16:03:15 +08:00
|
|
|
CFLAGS: "-mmacosx-version-min=10.15 -Wno-error=undef -Wno-error=conversion"
|
2020-04-10 06:59:35 +08:00
|
|
|
build:
|
|
|
|
- name: OpenSSL
|
2020-12-16 17:44:29 +08:00
|
|
|
install: nghttp2 openssl
|
|
|
|
generate: -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON
|
2020-04-10 06:59:35 +08:00
|
|
|
- name: LibreSSL
|
|
|
|
install: nghttp2 libressl
|
|
|
|
generate: -DOPENSSL_ROOT_DIR=/usr/local/opt/libressl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON
|
2021-05-11 20:37:37 +08:00
|
|
|
- name: libssh2
|
|
|
|
install: nghttp2 openssl libssh2
|
|
|
|
generate: -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCMAKE_USE_LIBSSH2=ON
|
2020-04-10 06:59:35 +08:00
|
|
|
steps:
|
2020-06-04 01:58:14 +08:00
|
|
|
- run: echo libtool autoconf automake pkg-config ${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
|
|
|
|
name: 'brew bundle'
|
2020-04-10 06:59:35 +08:00
|
|
|
|
2020-06-04 01:58:14 +08:00
|
|
|
- run: brew update && brew bundle install --no-lock --file /tmp/Brewfile
|
2020-04-10 06:59:35 +08:00
|
|
|
name: 'brew install'
|
|
|
|
|
2020-06-04 01:58:14 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-07-19 17:50:43 +08:00
|
|
|
- run: cmake -H. -Bbuild -DCURL_WERROR=ON -DPICKY_COMPILER=ON ${{ matrix.build.generate }}
|
2020-04-10 06:59:35 +08:00
|
|
|
name: 'cmake generate'
|
|
|
|
|
|
|
|
- run: cmake --build build
|
|
|
|
name: 'cmake build'
|