]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI/macos: set minimum macOS version
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 15 Jul 2020 08:03:15 +0000 (10:03 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 26 Jul 2020 14:31:33 +0000 (16:31 +0200)
This enables some deprecation warnings.
Previously, autotools defaulted to 10.8.

Closes https://github.com/curl/curl/pull/5723

.github/workflows/macos.yml

index 3092d4bc1592a10c353d0262dd80b7f8113beeaf..c4230e4802eaf8e8988652a5a011b0713568f966 100644 (file)
@@ -21,31 +21,44 @@ jobs:
         build:
         - name: normal
           install: nghttp2
+          macosx-version-min: 10.9
         - name: debug
           install: nghttp2
           configure: --enable-debug --enable-mqtt
+          macosx-version-min: 10.9
         - name: libssh2
           install: nghttp2 libssh2
           configure: --enable-debug --with-libssh2
+          macosx-version-min: 10.9
         - name: c-ares
           install: nghttp2
           configure: --enable-debug --enable-ares
+          macosx-version-min: 10.9
         - name: HTTP only
           install: nghttp2
           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-libmetalink --without-libpsl --without-librtmp --without-libssh2 --without-nghttp2 --without-ntlm-auth --without-ssl --without-zlib
+          macosx-version-min: 10.15
         - name: SecureTransport metalink
           install: nghttp2 openssl libmetalink
           configure: --enable-debug --without-ssl --with-darwinssl --with-libmetalink
+          macosx-version-min: 10.8
         - name: OpenSSL metalink
           install: nghttp2 openssl libmetalink
           configure: --enable-debug --with-ssl=/usr/local/opt/openssl --with-libmetalink
+          macosx-version-min: 10.9
         - name: LibreSSL metalink
           install: nghttp2 libressl libmetalink
           configure: --enable-debug --with-ssl=/usr/local/opt/libressl --with-libmetalink
+          macosx-version-min: 10.9
         - name: torture
           install: nghttp2 openssl
           configure: --enable-debug --disable-shared --disable-threaded-resolver --enable-alt-svc
           tflags: -n -t --shallow=25 !FTP
+          macosx-version-min: 10.9
+        - name: macOS 10.15
+          install: nghttp2 libmetalink libssh2
+          configure: --enable-debug --disable-ldap
+          macosx-version-min: 10.15
     steps:
     - run: echo libtool autoconf automake pkg-config ${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
       name: 'brew bundle'
@@ -59,7 +72,7 @@ jobs:
       name: 'configure'
       env:
         # -Wvla is caused by brotli
-        CFLAGS: -Wno-vla
+        CFLAGS: "-Wno-vla -mmacosx-version-min=${{ matrix.build.macosx-version-min }}"
 
     - run: make
       name: 'make'
@@ -79,12 +92,13 @@ jobs:
         compiler:
         - CC: clang
           CXX: clang++
+          CFLAGS: "-mmacosx-version-min=10.15"
         - CC: gcc-8
           CXX: g++-8
-          CFLAGS: "-Wno-error=undef -Wno-error=conversion"
+          CFLAGS: "-mmacosx-version-min=10.15 -Wno-error=undef -Wno-error=conversion"
         - CC: gcc-9
           CXX: g++-9
-          CFLAGS: "-Wno-error=undef -Wno-error=conversion"
+          CFLAGS: "-mmacosx-version-min=10.15 -Wno-error=undef -Wno-error=conversion"
         build:
         - name: OpenSSL
           install: nghttp2 openssl