Mercurial > vim
annotate .github/workflows/ci-windows.yaml @ 21560:614fcbd8275e v8.2.1330
patch 8.2.1330: Github workflow takes longer than needed
Commit: https://github.com/vim/vim/commit/3a53ec8bdddccf06a0e9db263277c50a6015294d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 31 22:17:32 2020 +0200
patch 8.2.1330: Github workflow takes longer than needed
Problem: Github workflow takes longer than needed.
Solution: Do two test runs in parallel instead of sequentially. (Ken Takata,
closes #6579)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 31 Jul 2020 22:30:04 +0200 |
parents | b54b2bb1da49 |
children | a87ab06501ad |
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 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
130 - name: Build (MSVC) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
131 if: matrix.toolchain == 'msvc' |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
132 shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
133 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
134 call "%VCVARSALL%" ${{ matrix.vcarch }} |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
135 cd src |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
136 :: 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
|
137 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
|
138 if "${{ matrix.features }}"=="HUGE" ( |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
139 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
|
140 FEATURES=${{ matrix.features }} ^ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
141 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
|
142 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
|
143 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
|
144 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
|
145 ) else ( |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
146 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
|
147 FEATURES=${{ matrix.features }} ^ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
148 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
|
149 ) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
150 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
|
151 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
|
152 exit 1 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
153 ) |
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 - name: Build (MinGW) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
156 if: matrix.toolchain == 'mingw' |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
157 shell: msys2 {0} |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
158 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
159 cd src |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
160 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
|
161 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
|
162 FEATURES=${{ matrix.features }} \ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
163 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
|
164 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
|
165 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
|
166 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
|
167 STATIC_STDCPLUS=yes |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
168 else |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
169 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
|
170 FEATURES=${{ matrix.features }} \ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
171 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
|
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 fi |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
174 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
175 # - name: Prepare Artifact |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
176 # shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
177 # run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
178 # mkdir artifacts |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
179 # 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
|
180 # 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
|
181 # |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
182 # - name: Upload Artifact |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
183 # 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
|
184 # with: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
185 # 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
|
186 # path: ./artifacts |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
187 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
188 - name: Test |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
189 shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
190 timeout-minutes: 20 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
191 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
192 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
|
193 call "%VCVARSALL%" ${{ matrix.vcarch }} |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
194 cd src |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
195 echo. |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
196 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
|
197 .\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
|
198 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
199 mkdir ..\src2 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
200 xcopy testdir ..\src2\testdir\ /E > nul || exit 1 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
201 copy evalfunc.c ..\src2 > nul |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
202 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
203 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
|
204 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
|
205 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
206 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
|
207 cd testdir |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
208 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
|
209 cd .. |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
210 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
211 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
|
212 cd ..\src2\testdir |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
213 :: Wait about 5 minutes. |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
214 for /L %%i in (1,1,300) do ( |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
215 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
|
216 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
|
217 ) |
21560
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
218 echo %COL_RED%Timed out.%COL_RESET% |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
219 :exitloop |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
220 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
221 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
|
222 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
|
223 nmake -nologo -f Make_dos.mak report VIMPROG=..\..\src\vim || exit 1 |