2020-03-23 14:44:29 +01:00
|
|
|
#***************************************************************************
|
|
|
|
|
# _ _ ____ _
|
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
|
#
|
2023-01-02 13:51:48 +01:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2020-03-23 14:44:29 +01:00
|
|
|
#
|
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 14:02:01 +01:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2020-03-23 14:44:29 +01:00
|
|
|
#
|
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
|
#
|
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
|
# KIND, either express or implied.
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 11:16:50 +02:00
|
|
|
#
|
2020-03-23 14:44:29 +01:00
|
|
|
###########################################################################
|
2023-10-29 18:15:11 +00:00
|
|
|
|
2023-03-10 16:58:21 -08:00
|
|
|
# https://ci.appveyor.com/project/curlorg/curl/history
|
2023-10-29 18:15:11 +00:00
|
|
|
# AppVeyor configuration:
|
|
|
|
|
# https://www.appveyor.com/docs/appveyor-yml/
|
|
|
|
|
# AppVeyor worker images:
|
|
|
|
|
# https://www.appveyor.com/docs/windows-images-software/
|
2020-03-23 14:44:29 +01:00
|
|
|
|
2016-06-22 15:42:10 +03:00
|
|
|
version: 7.50.0.{build}
|
2015-09-17 16:34:47 +03:00
|
|
|
|
|
|
|
|
environment:
|
2026-04-23 10:17:13 +02:00
|
|
|
DO_NOT_TRACK: '1'
|
|
|
|
|
|
2023-09-29 18:47:08 +00:00
|
|
|
matrix:
|
2026-01-21 16:41:42 +01:00
|
|
|
# CMake Visual Studio builds
|
2024-05-27 18:48:32 +02:00
|
|
|
|
2026-06-09 19:57:38 +02:00
|
|
|
- job_name: 'CM VS2022, Release, x64, OpenSSL 3.5, Shared, Build-tests'
|
2025-01-07 19:32:38 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 17 2022'
|
2026-08-10 19:26:15 +02:00
|
|
|
CMAKE_GENERATE: '-A x64 -DENABLE_DEBUG=OFF -DCURL_USE_SCHANNEL=OFF -DCURL_USE_OPENSSL=ON'
|
2026-01-21 16:41:42 +01:00
|
|
|
|
2026-08-10 19:26:15 +02:00
|
|
|
- job_name: 'CM VS2026, Release, arm64, Schannel, Static, Build-tests'
|
2026-06-09 19:57:38 +02:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2026'
|
|
|
|
|
CMAKE_VERSION: 4.2.1
|
|
|
|
|
CMAKE_SHA256: dfc2b2afac257555e3b9ce375b12b2883964283a366c17fec96cf4d17e4f1677
|
|
|
|
|
CMAKE_GENERATOR: 'Visual Studio 18 2026'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATE: '-A ARM64 -DENABLE_DEBUG=OFF -DBUILD_SHARED_LIBS=OFF'
|
|
|
|
|
|
2025-07-24 03:06:39 +02:00
|
|
|
- job_name: 'CM VS2010, Debug, x64, Schannel, Shared, Build-tests & examples'
|
cmake: drop support for CMake 3.17 and older
Require CMake 3.18 (2020-07-15) or newer, up from 3.7 (2016-11-11)
prior to this patch.
This requirement also applies to the distributed `curl-config.cmake`.
To allow dropping compatibility code maintained for old versions, and to
use features which were unpractical in separate code paths. Also to make
testing, documentation and development easier, CI builds faster due to
CMake performance improvements over time. (e.g. integration tests on
macOS run 8x faster (10 minutes is now under 1.5m) in CI, 2.5x faster on
Windows.)
CMake offers pre-built binaries for major platforms. They work without
an install step, just by unpacking and pointing the cmake command to
them. Making upgrades easy in many cases:
https://cmake.org/download/
https://cmake.org/files/
https://github.com/Kitware/CMake/releases
CMake 3.18 brings these feature as generally available when building or
consuming curl/libcurl:
LTO support, improved performance, `pkg-config` and interface target
support, `OBJECT` target (for faster libcurl builds), modern invocation
with `-S`/`-B` options, better support for custom linker options,
FetchContent, `GnuTLS::GnuTLS` target, `--verbose` and `--install`
options, `CMAKE_GENERATOR` env, last but not least unity mode and Ninja
generator.
For maximum build speed, use:
`-DCMAKE_UNITY_BUILD=ON -DCURL_DROP_UNUSED=ON`
As for deprecations, C++11 is required to build CMake itself, which may
be a limit on some platforms. autotools continues to cover them.
Follow-up to 9bcdfb3809a41327054421368bdea77ea17e6f90 #20408
Follow-up to a7c974e038572bd1d4a653afbd6de5fad5a10215 #19902
Follow-up to dfbe035c8b39b056a234bc76df3f384f7a7a24af #10161
Discussion: https://github.com/curl/curl/discussions/18704
Closes #20407
2025-11-26 19:07:19 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
|
|
|
|
CMAKE_VERSION: 3.18.4
|
|
|
|
|
CMAKE_SHA256: a932bc0c8ee79f1003204466c525b38a840424d4ae29f9e5fb88959116f2407d
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 10 2010'
|
|
|
|
|
CMAKE_GENERATE: '-A x64'
|
|
|
|
|
|
2025-08-27 00:54:22 +02:00
|
|
|
- job_name: 'CM VS2012, Release, x86, Schannel, Shared, Build-tests'
|
2025-01-07 13:56:09 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
cmake: drop support for CMake 3.17 and older
Require CMake 3.18 (2020-07-15) or newer, up from 3.7 (2016-11-11)
prior to this patch.
This requirement also applies to the distributed `curl-config.cmake`.
To allow dropping compatibility code maintained for old versions, and to
use features which were unpractical in separate code paths. Also to make
testing, documentation and development easier, CI builds faster due to
CMake performance improvements over time. (e.g. integration tests on
macOS run 8x faster (10 minutes is now under 1.5m) in CI, 2.5x faster on
Windows.)
CMake offers pre-built binaries for major platforms. They work without
an install step, just by unpacking and pointing the cmake command to
them. Making upgrades easy in many cases:
https://cmake.org/download/
https://cmake.org/files/
https://github.com/Kitware/CMake/releases
CMake 3.18 brings these feature as generally available when building or
consuming curl/libcurl:
LTO support, improved performance, `pkg-config` and interface target
support, `OBJECT` target (for faster libcurl builds), modern invocation
with `-S`/`-B` options, better support for custom linker options,
FetchContent, `GnuTLS::GnuTLS` target, `--verbose` and `--install`
options, `CMAKE_GENERATOR` env, last but not least unity mode and Ninja
generator.
For maximum build speed, use:
`-DCMAKE_UNITY_BUILD=ON -DCURL_DROP_UNUSED=ON`
As for deprecations, C++11 is required to build CMake itself, which may
be a limit on some platforms. autotools continues to cover them.
Follow-up to 9bcdfb3809a41327054421368bdea77ea17e6f90 #20408
Follow-up to a7c974e038572bd1d4a653afbd6de5fad5a10215 #19902
Follow-up to dfbe035c8b39b056a234bc76df3f384f7a7a24af #10161
Discussion: https://github.com/curl/curl/discussions/18704
Closes #20407
2025-11-26 19:07:19 +01:00
|
|
|
CMAKE_VERSION: 3.21.7
|
|
|
|
|
CMAKE_SHA256: 4c4840e2dc2bf82e8a16081ff506bba54f3a228b91ce36317129fed4035ef2e3
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 11 2012'
|
2026-08-10 19:26:15 +02:00
|
|
|
CMAKE_GENERATE: '-A Win32 -DENABLE_DEBUG=OFF'
|
2026-01-21 16:41:42 +01:00
|
|
|
|
|
|
|
|
- job_name: 'CM VS2013, Debug, x64, Schannel, Shared'
|
2025-01-07 10:48:57 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2026-02-04 14:54:26 +01:00
|
|
|
CMAKE_VERSION: 3.18.4
|
|
|
|
|
CMAKE_SHA256: a932bc0c8ee79f1003204466c525b38a840424d4ae29f9e5fb88959116f2407d
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 12 2013'
|
|
|
|
|
CMAKE_GENERATE: '-A x64'
|
|
|
|
|
|
|
|
|
|
- job_name: 'CM VS2015, Debug, x64, Schannel, Static'
|
2025-01-07 10:48:57 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2026-02-04 14:54:26 +01:00
|
|
|
CMAKE_VERSION: 3.19.8
|
|
|
|
|
CMAKE_SHA256: 2a30877a3d6b50da305b289f4d1c03befdfaeb2edba02a563c681e883d810380
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 14 2015'
|
|
|
|
|
CMAKE_GENERATE: '-A x64 -DBUILD_SHARED_LIBS=OFF'
|
|
|
|
|
|
|
|
|
|
- job_name: 'CM VS2017, Debug, x64, Schannel, Shared'
|
2025-01-07 10:48:57 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
|
2026-02-04 14:54:26 +01:00
|
|
|
CMAKE_VERSION: 3.20.6
|
|
|
|
|
CMAKE_SHA256: f240a38c964712aac474644b3ba21bdc2b4e8d5e31179f67bd2e6f45fa349419
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 15 2017'
|
|
|
|
|
CMAKE_GENERATE: '-A x64'
|
|
|
|
|
|
2026-01-21 13:55:32 +01:00
|
|
|
- job_name: 'CM VS2019, Debug, x64, OpenSSL 3.0 + Schannel, Shared, !verbose, Build-tests'
|
2025-02-07 02:53:15 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2019'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 16 2019'
|
|
|
|
|
CMAKE_GENERATE: '-A x64 -DCURL_USE_OPENSSL=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON'
|
|
|
|
|
|
2026-06-09 19:57:38 +02:00
|
|
|
- job_name: 'CM VS2026, Debug, x64, OpenSSL 3.5 + Schannel, Static, Unicode, Build-tests & examples, clang-cl'
|
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2026'
|
|
|
|
|
CMAKE_VERSION: 4.2.1
|
|
|
|
|
CMAKE_SHA256: dfc2b2afac257555e3b9ce375b12b2883964283a366c17fec96cf4d17e4f1677
|
|
|
|
|
CMAKE_GENERATOR: 'Visual Studio 18 2026'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATE: '-A x64 -T ClangCl -DBUILD_SHARED_LIBS=OFF -DCURL_USE_OPENSSL=ON -DENABLE_UNICODE=ON'
|
|
|
|
|
|
2026-08-10 19:26:15 +02:00
|
|
|
- job_name: 'CM VS2022, Release, x64, Schannel, Shared, Unicode, Build-tests'
|
2024-05-20 14:21:05 +02:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 17 2022'
|
2024-05-20 14:21:05 +02:00
|
|
|
ENABLE_UNICODE: 'ON'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATE: '-A x64 -DENABLE_UNICODE=ON -DENABLE_DEBUG=OFF'
|
|
|
|
|
|
2026-06-09 19:57:38 +02:00
|
|
|
- job_name: 'CM VS2026, Debug, x64, !ssl, Static, Build-tests'
|
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2026'
|
|
|
|
|
CMAKE_VERSION: 4.2.1
|
|
|
|
|
CMAKE_SHA256: dfc2b2afac257555e3b9ce375b12b2883964283a366c17fec96cf4d17e4f1677
|
|
|
|
|
CMAKE_GENERATOR: 'Visual Studio 18 2026'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATE: '-A x64 -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=OFF'
|
|
|
|
|
|
|
|
|
|
- job_name: 'CM VS2022, Debug, x64, !ssl, Static, HTTP-only, Build-tests'
|
2023-10-01 17:32:59 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2026-01-21 16:41:42 +01:00
|
|
|
CMAKE_GENERATOR: 'Visual Studio 17 2022'
|
|
|
|
|
CMAKE_GENERATE: '-A x64 -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=OFF -DHTTP_ONLY=ON'
|
2024-05-11 15:34:12 +02:00
|
|
|
|
2026-01-21 16:41:42 +01:00
|
|
|
# VisualStudioSolution builds
|
2024-05-11 15:34:12 +02:00
|
|
|
|
2026-01-21 16:41:42 +01:00
|
|
|
- job_name: 'VisualStudioSolution VS2010, Release, x86, Schannel'
|
2026-06-09 19:57:38 +02:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2025-11-17 14:55:14 +01:00
|
|
|
PRJ_CFG: 'DLL Release - DLL Windows SSPI - DLL WinIDN'
|
|
|
|
|
PLAT: 'Win32'
|
|
|
|
|
VC_VERSION: VC10
|
2026-01-21 16:41:42 +01:00
|
|
|
|
|
|
|
|
- job_name: 'VisualStudioSolution VS2013, Debug, x64, Schannel'
|
2024-04-08 09:13:17 +02:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-10-01 17:32:59 +00:00
|
|
|
PRJ_CFG: 'DLL Debug - DLL Windows SSPI - DLL WinIDN'
|
2025-11-17 14:55:14 +01:00
|
|
|
PLAT: 'x64'
|
2024-04-08 09:13:17 +02:00
|
|
|
VC_VERSION: VC12
|
2024-05-11 15:34:12 +02:00
|
|
|
|
2018-10-10 22:22:06 +02:00
|
|
|
install:
|
GHA: add three old (gcc 6, 7, 9) mingw-w64 jobs
Re-implement old mingw-w64 jobs in GHA. This allows to use the latest
Windows runners, replacing Windows Server 2012 R2 (gcc 6) and Windows
Server 2016 (gcc 7, 9) with Windows Server 2022.
GHA runners are also significantly faster, and allow running tests in
parallel (`-j14`). It also offloads 3 more long-running jobs from
AppVeyor CI.
These jobs download (then cache) the mingw-w64 packages from their
original location, which allows flexibility in choosing which versions
and flavours (win32/POSIX, SEH/DWARF, 64/32-bit) we want to test in CI.
The new jobs use these distros:
- https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/ (for gcc 7, same as on AppVeyor)
- https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/ (for gcc 6, same as on AppVeyor)
- https://winlibs.com/ (for gcc 9)
I matched existing AppVeyor job configs, with these differences:
- gcc 6.4.0 instead of 6.3.0.
(same distro as on AppVeyor, but the latest bugfix release)
- gcc 9.5.0 instead of 9.1.0 and a different (but compatible) binary distro.
(in AppVeyor this relies on an old MSYS2 pre-installed on the runner)
- using win32 builds instead of posix for gcc 6.4.0 and 7.3.0.
- websockets enabled.
- always build examples.
- always build tests (this wasn't done for 6.4.0 with AppVeyor CI).
I did not replicate existing test exclusions, and oddly enough the few
failures (so far) were different from MSYS2 jobs and also from their
AppVeyor CI counterparts.
Also:
- delete redundant (default) `-u` option from `cygpath` calls.
- allow matrix options to override default ones in CMake.
- detect and use Windows-supplied curl for `TFLAGS` `-ac` option.
(it's available in modern runners.)
- delete the 3 AppVeyor CI jobs now replicated in GHA.
- appveyor: prefer `SYSTEMROOT` over `WINDIR`.
- tidy-up quotes.
Job performance:
```
AppVeyor GHA
w/examples
w/tests
-------- ----------
CMake, mingw-w64, gcc 6, Debug, x86, Schannel, Static, no-unity 1m25s 8m50s
CMake, mingw-w64, gcc 7, Debug, x64, Schannel, Static, Unicode 31m45s 9m39s
CMake, mingw-w64, gcc 9, Debug, x64, Schannel, Static 28m25s 13m38s
```
Based on these runs:
https://ci.appveyor.com/project/curlorg/curl/builds/49880799
https://github.com/curl/curl/actions/runs/9218292508
Notice that building examples and tests is time consuming.
We can tweak any build parameter as necessary to make them more useful
and/or without clogging the job queue or introducing flakiness.
Closes #13759
2024-05-23 14:54:49 +02:00
|
|
|
- ps: $env:PATH = "C:/msys64/usr/bin;$env:PATH"
|
2023-09-29 18:47:08 +00:00
|
|
|
|
2023-12-21 03:59:20 +00:00
|
|
|
build_script:
|
|
|
|
|
- cmd: sh -c ./appveyor.sh
|
2023-10-01 17:32:59 +00:00
|
|
|
|
|
|
|
|
clone_depth: 10
|
2018-10-02 17:47:39 +02:00
|
|
|
|
2020-06-09 16:08:11 +02:00
|
|
|
# select branches to avoid testing feature branches twice (as branch and as pull request)
|
2017-06-20 23:00:49 +02:00
|
|
|
branches:
|
2023-09-29 18:47:08 +00:00
|
|
|
only:
|
|
|
|
|
- master
|
|
|
|
|
- /\/ci$/
|
2019-10-19 20:37:06 +02:00
|
|
|
|
2023-04-24 16:34:26 -07:00
|
|
|
skip_commits:
|
|
|
|
|
files:
|
2024-03-01 01:06:28 -08:00
|
|
|
- '.circleci/*'
|
2023-04-28 10:28:06 -07:00
|
|
|
- '.github/**/*'
|
2025-07-02 18:26:59 -07:00
|
|
|
- 'Dockerfile'
|
2026-01-12 19:44:14 +01:00
|
|
|
- 'projects/OS400/*'
|
|
|
|
|
- 'projects/vms/*'
|
2023-04-24 16:34:26 -07:00
|
|
|
|
2024-08-18 09:26:22 +02:00
|
|
|
#artifacts:
|
|
|
|
|
# - path: '**/curl.exe'
|
|
|
|
|
# name: curl
|
2025-02-24 19:59:23 +01:00
|
|
|
# - path: '**/*.dll'
|
2024-08-18 09:26:22 +02:00
|
|
|
# name: libcurl dll
|
2026-02-27 00:03:18 +01:00
|
|
|
# - path: '**/*.lib'
|
|
|
|
|
# name: libcurl lib
|