2020-03-23 21:44:29 +08:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2020-03-23 21:44:29 +08: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 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2020-03-23 21:44:29 +08: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 17:16:50 +08:00
|
|
|
#
|
2020-03-23 21:44:29 +08:00
|
|
|
###########################################################################
|
2023-10-30 02:15:11 +08:00
|
|
|
|
2023-03-11 08:58:21 +08:00
|
|
|
# https://ci.appveyor.com/project/curlorg/curl/history
|
2023-10-30 02:15:11 +08:00
|
|
|
# AppVeyor configuration:
|
|
|
|
# https://www.appveyor.com/docs/appveyor-yml/
|
|
|
|
# AppVeyor worker images:
|
|
|
|
# https://www.appveyor.com/docs/windows-images-software/
|
2020-03-23 21:44:29 +08:00
|
|
|
|
2016-06-22 20:42:10 +08:00
|
|
|
version: 7.50.0.{build}
|
2015-09-17 21:34:47 +08:00
|
|
|
|
|
|
|
environment:
|
2024-03-28 17:07:35 +08:00
|
|
|
UNITY: 'ON'
|
2023-10-02 01:32:59 +08:00
|
|
|
OPENSSL: 'OFF'
|
|
|
|
DEBUG: 'ON'
|
|
|
|
SHARED: 'OFF'
|
2024-09-02 20:46:00 +08:00
|
|
|
TFLAGS: 'skiprun'
|
2024-09-14 08:21:33 +08:00
|
|
|
EXAMPLES: 'OFF'
|
2023-09-30 02:47:08 +08:00
|
|
|
matrix:
|
2024-05-28 00:48:32 +08:00
|
|
|
|
|
|
|
# generated CMake-based Visual Studio builds
|
|
|
|
|
2024-09-02 20:46:00 +08:00
|
|
|
- job_name: 'CMake, VS2008, Release, x86, Schannel, Build-tests'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: CMake
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_GEN: 'Visual Studio 9 2008'
|
2023-09-30 02:47:08 +08:00
|
|
|
PRJ_CFG: Release
|
2024-05-11 08:44:10 +08:00
|
|
|
DEBUG: 'OFF'
|
2023-10-02 01:32:59 +08:00
|
|
|
SCHANNEL: 'ON'
|
|
|
|
ENABLE_UNICODE: 'OFF'
|
|
|
|
HTTP_ONLY: 'OFF'
|
|
|
|
SHARED: 'ON'
|
2024-09-14 08:21:33 +08:00
|
|
|
- job_name: 'CMake, VS2008, Debug, x86, Schannel, Build-tests & examples'
|
2024-05-15 14:19:54 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
|
|
|
BUILD_SYSTEM: CMake
|
|
|
|
PRJ_GEN: 'Visual Studio 9 2008'
|
|
|
|
PRJ_CFG: Debug
|
|
|
|
SCHANNEL: 'ON'
|
|
|
|
ENABLE_UNICODE: 'OFF'
|
|
|
|
HTTP_ONLY: 'OFF'
|
|
|
|
SHARED: 'ON'
|
2024-09-14 08:21:33 +08:00
|
|
|
EXAMPLES: 'ON'
|
2024-09-30 16:39:06 +08:00
|
|
|
- job_name: 'CMake, VS2022, Release, x64, OpenSSL 3.3, Build-tests'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: CMake
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_GEN: 'Visual Studio 17 2022'
|
|
|
|
TARGET: '-A x64'
|
2023-09-30 02:47:08 +08:00
|
|
|
PRJ_CFG: Release
|
2023-10-02 01:32:59 +08:00
|
|
|
OPENSSL: 'ON'
|
|
|
|
SCHANNEL: 'OFF'
|
|
|
|
ENABLE_UNICODE: 'OFF'
|
|
|
|
HTTP_ONLY: 'OFF'
|
|
|
|
SHARED: 'ON'
|
2024-05-28 05:22:39 +08:00
|
|
|
- job_name: 'CMake, VS2022, Release, arm64, Schannel, Static, Build-tests'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: CMake
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_GEN: 'Visual Studio 17 2022'
|
|
|
|
TARGET: '-A ARM64'
|
2023-09-30 02:47:08 +08:00
|
|
|
PRJ_CFG: Release
|
2023-10-02 01:32:59 +08:00
|
|
|
SCHANNEL: 'ON'
|
|
|
|
ENABLE_UNICODE: 'OFF'
|
|
|
|
HTTP_ONLY: 'OFF'
|
2024-05-16 19:49:22 +08:00
|
|
|
DEBUG: 'OFF'
|
|
|
|
CURLDEBUG: 'ON'
|
2024-09-14 08:21:33 +08:00
|
|
|
- job_name: 'CMake, VS2010, Debug, x64, Schannel, Static, Build-tests & examples'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: CMake
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_GEN: 'Visual Studio 10 2010 Win64'
|
2023-09-30 02:47:08 +08:00
|
|
|
PRJ_CFG: Debug
|
2024-04-10 03:08:18 +08:00
|
|
|
SCHANNEL: 'ON'
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'OFF'
|
|
|
|
HTTP_ONLY: 'OFF'
|
2024-09-14 08:21:33 +08:00
|
|
|
EXAMPLES: 'ON'
|
2024-09-02 20:46:00 +08:00
|
|
|
- job_name: 'CMake, VS2022, Debug, x64, Schannel, Static, Unicode, Build-tests'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: CMake
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_GEN: 'Visual Studio 17 2022'
|
|
|
|
TARGET: '-A x64'
|
2023-09-30 02:47:08 +08:00
|
|
|
PRJ_CFG: Debug
|
2023-10-02 01:32:59 +08:00
|
|
|
SCHANNEL: 'ON'
|
|
|
|
ENABLE_UNICODE: 'ON'
|
|
|
|
HTTP_ONLY: 'OFF'
|
2024-09-02 20:46:00 +08:00
|
|
|
- job_name: 'CMake, VS2022, Release, x64, Schannel, Shared, Unicode, DEBUGBULID, no-CURLDEBUG, Build-tests'
|
2024-05-20 20:21:05 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
|
|
|
BUILD_SYSTEM: CMake
|
|
|
|
PRJ_GEN: 'Visual Studio 17 2022'
|
|
|
|
TARGET: '-A x64'
|
|
|
|
PRJ_CFG: Release
|
|
|
|
SCHANNEL: 'ON'
|
|
|
|
ENABLE_UNICODE: 'ON'
|
|
|
|
HTTP_ONLY: 'OFF'
|
|
|
|
SHARED: 'ON'
|
|
|
|
CURLDEBUG: 'OFF'
|
2024-09-02 20:46:00 +08:00
|
|
|
- job_name: 'CMake, VS2022, Debug, x64, no SSL, Static, Build-tests'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: CMake
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_GEN: 'Visual Studio 17 2022'
|
|
|
|
TARGET: '-A x64'
|
2023-09-30 02:47:08 +08:00
|
|
|
PRJ_CFG: Debug
|
2023-10-02 01:32:59 +08:00
|
|
|
SCHANNEL: 'OFF'
|
|
|
|
ENABLE_UNICODE: 'OFF'
|
|
|
|
HTTP_ONLY: 'OFF'
|
2024-09-02 20:46:00 +08:00
|
|
|
- job_name: 'CMake, VS2022, Debug, x64, no SSL, Static, HTTP only, Build-tests'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: CMake
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_GEN: 'Visual Studio 17 2022'
|
|
|
|
TARGET: '-A x64'
|
2023-09-30 02:47:08 +08:00
|
|
|
PRJ_CFG: Debug
|
2023-10-02 01:32:59 +08:00
|
|
|
SCHANNEL: 'OFF'
|
|
|
|
ENABLE_UNICODE: 'OFF'
|
|
|
|
HTTP_ONLY: 'ON'
|
2024-05-11 21:34:12 +08:00
|
|
|
|
2023-09-30 02:47:08 +08:00
|
|
|
# winbuild-based builds
|
2024-05-11 21:34:12 +08:00
|
|
|
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2015, Debug, x64, OpenSSL 1.1.1, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2015
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'yes'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: debug
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'no'
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2015, Release, x64, OpenSSL 1.1.1, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2015
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'no'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: release
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'no'
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2017, Debug, x64, OpenSSL 1.1.1, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2017
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'yes'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: debug
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'no'
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2017, Release, x64, OpenSSL 1.1.1, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2017
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'no'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: release
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'no'
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2015, Debug, x64, OpenSSL 1.1.1, Unicode, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2015
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'yes'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: debug
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'yes'
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2015, Release, x64, OpenSSL 1.1.1, Unicode, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2015
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'no'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: release
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'yes'
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2017, Debug, x64, OpenSSL 1.1.1, Unicode, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2017
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'yes'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: debug
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'yes'
|
2023-10-30 02:15:11 +08:00
|
|
|
- job_name: 'winbuild, VS2017, Release, x64, OpenSSL 1.1.1, Unicode, Build-only'
|
2023-10-02 01:32:59 +08:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: winbuild_vs2017
|
2023-10-02 01:32:59 +08:00
|
|
|
DEBUG: 'no'
|
2023-09-30 02:47:08 +08:00
|
|
|
PATHPART: release
|
2023-10-02 01:32:59 +08:00
|
|
|
ENABLE_UNICODE: 'yes'
|
2024-05-11 21:34:12 +08:00
|
|
|
|
2023-09-30 02:47:08 +08:00
|
|
|
# generated VisualStudioSolution-based builds
|
2024-05-11 21:34:12 +08:00
|
|
|
|
2024-04-08 15:13:17 +08:00
|
|
|
- job_name: 'VisualStudioSolution, VS2013, Debug, x86, Schannel, Build-only'
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
|
2023-09-30 02:47:08 +08:00
|
|
|
BUILD_SYSTEM: VisualStudioSolution
|
2023-10-02 01:32:59 +08:00
|
|
|
PRJ_CFG: 'DLL Debug - DLL Windows SSPI - DLL WinIDN'
|
2024-04-08 15:13:17 +08:00
|
|
|
VC_VERSION: VC12
|
2024-05-11 21:34:12 +08:00
|
|
|
|
2018-10-11 04:22:06 +08: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 20:54:49 +08:00
|
|
|
- ps: $env:PATH = "C:/msys64/usr/bin;$env:PATH"
|
2023-09-30 02:47:08 +08:00
|
|
|
|
2023-12-21 11:59:20 +08:00
|
|
|
build_script:
|
|
|
|
- cmd: sh -c ./appveyor.sh
|
2023-10-02 01:32:59 +08:00
|
|
|
|
|
|
|
clone_depth: 10
|
2018-10-02 23:47:39 +08:00
|
|
|
|
2020-06-09 22:08:11 +08:00
|
|
|
# select branches to avoid testing feature branches twice (as branch and as pull request)
|
2017-06-21 05:00:49 +08:00
|
|
|
branches:
|
2023-09-30 02:47:08 +08:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /\/ci$/
|
2019-10-20 02:37:06 +08:00
|
|
|
|
2023-04-25 07:34:26 +08:00
|
|
|
skip_commits:
|
|
|
|
files:
|
2024-03-01 17:06:28 +08:00
|
|
|
- '.circleci/*'
|
2023-04-29 01:28:06 +08:00
|
|
|
- '.github/**/*'
|
|
|
|
- 'packages/**/*'
|
|
|
|
- 'plan9/**/*'
|
2023-04-25 07:34:26 +08:00
|
|
|
|
2024-08-18 15:26:22 +08:00
|
|
|
#artifacts:
|
|
|
|
# - path: '**/curl.exe'
|
|
|
|
# name: curl
|
|
|
|
# - path: '**/*curl*.dll'
|
|
|
|
# name: libcurl dll
|