annotate .github/workflows/ci-windows.yaml @ 22011:2b6d696b063d v8.2.1555

patch 8.2.1555: not all tests are executed on Github Actions Commit: https://github.com/vim/vim/commit/7d6979608ee83b06ccfab2589da3047b143defae Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 31 21:30:32 2020 +0200 patch 8.2.1555: not all tests are executed on Github Actions Problem: Not all tests are executed on Github Actions. Solution: Copy "src" to "src2" earlier. Recognize "src2" in a couple more places. Add two tests to the list of flaky tests. (Ken Takata, closes #6798)
author Bram Moolenaar <Bram@vim.org>
date Mon, 31 Aug 2020 21:45:03 +0200
parents a87ab06501ad
children 294f27aeced4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21538
6e13105b5d07 patch 8.2.1319: status badge for Github CI has wrong link
Bram Moolenaar <Bram@vim.org>
parents: 21534
diff changeset
1 name: GitHub CI
21534
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 on:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 push:
21542
b54b2bb1da49 patch 8.2.1321: GitHub CI also runs on tag push
Bram Moolenaar <Bram@vim.org>
parents: 21538
diff changeset
5 branches:
b54b2bb1da49 patch 8.2.1321: GitHub CI also runs on tag push
Bram Moolenaar <Bram@vim.org>
parents: 21538
diff changeset
6 - '*'
21534
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 pull_request:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 env:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 # Interfaces
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 # Lua
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 LUA_VER: 54
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 LUA_VER_DOT: '5.4'
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 LUA_RELEASE: 5.4.0
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 LUA32_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win32_dllw6_lib.zip
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 LUA64_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win64_dllw6_lib.zip
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 LUA_DIR: D:\Lua
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 # Python 2
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 PYTHON_VER: 27
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 PYTHON_VER_DOT: '2.7'
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 # Python 3
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 PYTHON3_VER: 38
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 PYTHON3_VER_DOT: '3.8'
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 # Other dependencies
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 # winpty
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 WINPTY_URL: https://github.com/rprichard/winpty/releases/download/0.4.3/winpty-0.4.3-msvc2015.zip
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 # Escape sequences
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 COL_RED: "\x1b[31m"
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 COL_GREEN: "\x1b[32m"
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 COL_YELLOW: "\x1b[33m"
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 COL_RESET: "\x1b[m"
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 jobs:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 build:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 runs-on: windows-latest
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 strategy:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 matrix:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 toolchain: [msvc, mingw]
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 arch: [x64, x86]
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 features: [HUGE, NORMAL]
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 include:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 - arch: x64
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 vcarch: amd64
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 warch: x64
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 bits: 64
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51 msystem: MINGW64
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 cygreg: registry
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 pyreg: ""
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 - arch: x86
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 vcarch: x86
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 warch: ia32
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57 bits: 32
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
58 msystem: MINGW32
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
59 cygreg: registry32
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
60 pyreg: "-32"
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61 exclude:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62 - toolchain: msvc
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63 arch: x64
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
64 features: NORMAL
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
65 - toolchain: mingw
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
66 arch: x86
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 features: NORMAL
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
69 steps:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
70 - name: Initalize
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
71 id: init
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
72 shell: bash
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
73 run: |
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
74 git config --global core.autocrlf input
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
75 python_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON_VER_DOT}/InstallPath/@")
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
76 python3_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON3_VER_DOT}${{ matrix.pyreg }}/InstallPath/@")
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
77 echo "::set-env name=PYTHON_DIR::$python_dir"
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
78 echo "::set-env name=PYTHON3_DIR::$python3_dir"
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
79
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
80 - uses: msys2/setup-msys2@v2
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
81 if: matrix.toolchain == 'mingw'
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
82 with:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
83 msystem: ${{ matrix.msystem }}
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
84 release: false
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
85
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
86 - uses: actions/checkout@v2
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
87
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
88 - name: Create a list of download URLs
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
89 shell: cmd
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
90 run: |
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
91 type NUL > urls.txt
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
92 echo %LUA_RELEASE%>> urls.txt
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
93 echo %WINPTY_URL%>> urls.txt
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
94
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
95 - name: Cache downloaded files
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
96 uses: actions/cache@v2
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
97 with:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
98 path: downloads
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
99 key: ${{ runner.os }}-${{ matrix.bits }}-${{ hashFiles('urls.txt') }}
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
100
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
101 - name: Download dependencies
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
102 shell: cmd
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
103 run: |
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
104 path C:\Program Files\7-Zip;%path%
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
105 if not exist downloads mkdir downloads
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
106
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
107 echo %COL_GREEN%Download Lua%COL_RESET%
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
108 call :downloadfile %LUA${{ matrix.bits }}_URL% downloads\lua.zip
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
109 7z x downloads\lua.zip -o%LUA_DIR% > nul || exit 1
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
110
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
111 echo %COL_GREEN%Download winpty%COL_RESET%
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
112 call :downloadfile %WINPTY_URL% downloads\winpty.zip
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
113 7z x -y downloads\winpty.zip -oD:\winpty > nul || exit 1
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
114 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty.dll src\winpty${{ matrix.bits }}.dll
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
115 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty-agent.exe src\
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
116
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
117 goto :eof
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
118
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
119 :downloadfile
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
120 :: call :downloadfile <URL> <localfile>
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
121 if not exist %2 (
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
122 curl -f -L %1 -o %2
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
123 )
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
124 if ERRORLEVEL 1 (
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
125 rem Retry once.
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
126 curl -f -L %1 -o %2 || exit 1
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
127 )
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
128 goto :eof
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
129
22011
2b6d696b063d patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents: 21568
diff changeset
130 - name: Copy src directory to src2
2b6d696b063d patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents: 21568
diff changeset
131 shell: cmd
2b6d696b063d patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents: 21568
diff changeset
132 run: |
2b6d696b063d patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents: 21568
diff changeset
133 xcopy src src2\ /E > nul
2b6d696b063d patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents: 21568
diff changeset
134
21534
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
135 - name: Build (MSVC)
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
136 if: matrix.toolchain == 'msvc'
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
137 shell: cmd
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
138 run: |
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
139 call "%VCVARSALL%" ${{ matrix.vcarch }}
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
140 cd src
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
141 :: Filter out the progress bar from the build log
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
142 sed -e "s/@<<$/@<< | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
143 if "${{ matrix.features }}"=="HUGE" (
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
144 nmake -nologo -f Make_mvc2.mak ^
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
145 FEATURES=${{ matrix.features }} ^
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
146 GUI=yes IME=yes ICONV=yes VIMDLL=yes ^
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
147 DYNAMIC_LUA=yes LUA=%LUA_DIR% ^
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
148 DYNAMIC_PYTHON=yes PYTHON=%PYTHON_DIR% ^
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
149 DYNAMIC_PYTHON3=yes PYTHON3=%PYTHON3_DIR%
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
150 ) else (
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
151 nmake -nologo -f Make_mvc2.mak ^
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
152 FEATURES=${{ matrix.features }} ^
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
153 GUI=yes IME=yes ICONV=yes VIMDLL=yes
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
154 )
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
155 if not exist vim${{ matrix.bits }}.dll (
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
156 echo %COL_RED%Build failure.%COL_RESET%
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
157 exit 1
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
158 )
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
159
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
160 - name: Build (MinGW)
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
161 if: matrix.toolchain == 'mingw'
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
162 shell: msys2 {0}
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
163 run: |
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
164 cd src
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
165 if [ "${{ matrix.features }}" = "HUGE" ]; then
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
166 mingw32-make -f Make_ming.mak -j2 \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
167 FEATURES=${{ matrix.features }} \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
168 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
169 DYNAMIC_LUA=yes LUA=${LUA_DIR} \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
170 DYNAMIC_PYTHON=yes PYTHON=${PYTHON_DIR} \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
171 DYNAMIC_PYTHON3=yes PYTHON3=${PYTHON3_DIR} \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
172 STATIC_STDCPLUS=yes
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
173 else
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
174 mingw32-make -f Make_ming.mak -j2 \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
175 FEATURES=${{ matrix.features }} \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
176 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
177 STATIC_STDCPLUS=yes
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
178 fi
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
179
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
180 # - name: Prepare Artifact
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
181 # shell: cmd
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
182 # run: |
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
183 # mkdir artifacts
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
184 # copy src\*vim.exe artifacts
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
185 # copy src\vim*.dll artifacts
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
186 #
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
187 # - name: Upload Artifact
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
188 # uses: actions/upload-artifact@v1
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
189 # with:
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
190 # name: vim${{ matrix.bits }}-${{ matrix.toolchain }}
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
191 # path: ./artifacts
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
192
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
193 - name: Test
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
194 shell: cmd
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
195 timeout-minutes: 20
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
196 run: |
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
197 PATH %LUA_DIR%;C:\msys64\${{ matrix.msystem }}\bin;%PATH%;%PYTHON3_DIR%
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
198 call "%VCVARSALL%" ${{ matrix.vcarch }}
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
199 cd src
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
200 echo.
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
201 echo %COL_GREEN%vim version:%COL_RESET%
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
202 .\vim --version || exit 1
21560
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
203
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
204 echo %COL_GREEN%Start testing vim in background.%COL_RESET%
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
205 start cmd /c "cd ..\src2\testdir & nmake -nologo -f Make_dos.mak VIMPROG=..\..\src\vim > nul & echo done>done.txt"
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
206
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
207 echo %COL_GREEN%Test gvim:%COL_RESET%
21534
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
208 cd testdir
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
209 nmake -nologo -f Make_dos.mak VIMPROG=..\gvim || exit 1
21560
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
210 cd ..
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
211
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
212 echo %COL_GREEN%Wait for vim tests to finish.%COL_RESET%
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
213 cd ..\src2\testdir
21568
a87ab06501ad patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents: 21560
diff changeset
214 :: Wait about 10 minutes.
a87ab06501ad patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents: 21560
diff changeset
215 for /L %%i in (1,1,600) do (
21560
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
216 if exist done.txt goto exitloop
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
217 ping -n 2 localhost > nul
21534
69a59cc69519 patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
218 )
21568
a87ab06501ad patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents: 21560
diff changeset
219 set timeout=1
21560
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
220 :exitloop
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
221
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
222 echo %COL_GREEN%Test results of vim:%COL_RESET%
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
223 if exist messages type messages
614fcbd8275e patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents: 21542
diff changeset
224 nmake -nologo -f Make_dos.mak report VIMPROG=..\..\src\vim || exit 1
21568
a87ab06501ad patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents: 21560
diff changeset
225 if "%timeout%"=="1" (
a87ab06501ad patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents: 21560
diff changeset
226 echo %COL_RED%Timed out.%COL_RESET%
a87ab06501ad patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents: 21560
diff changeset
227 exit 1
a87ab06501ad patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents: 21560
diff changeset
228 )