Mercurial > vim
annotate .github/workflows/ci-windows.yaml @ 22677:f9d1d2acb2c7 v8.2.1887
patch 8.2.1887: Github actions not optimally configured
Commit: https://github.com/vim/vim/commit/15ab48f088842de512ca5f13aa39a4dc7cac8477
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 22 17:33:17 2020 +0200
patch 8.2.1887: Github actions not optimally configured
Problem: Github actions not optimally configured.
Solution: Run CI on any pushed branches. Set fail-fast. (Ozaki Kiichi,
closes #7184)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Oct 2020 17:45:05 +0200 |
parents | 392c7bd6fa36 |
children | 94656f3ff304 |
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: |
22677
f9d1d2acb2c7
patch 8.2.1887: Github actions not optimally configured
Bram Moolenaar <Bram@vim.org>
parents:
22561
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: |
22677
f9d1d2acb2c7
patch 8.2.1887: Github actions not optimally configured
Bram Moolenaar <Bram@vim.org>
parents:
22561
diff
changeset
|
42 fail-fast: false |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
43 matrix: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
44 toolchain: [msvc, mingw] |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
45 arch: [x64, x86] |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
46 features: [HUGE, NORMAL] |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
47 include: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
48 - arch: x64 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
49 vcarch: amd64 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
50 warch: x64 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
51 bits: 64 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
52 msystem: MINGW64 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
53 cygreg: registry |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
54 pyreg: "" |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
55 - arch: x86 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
56 vcarch: x86 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
57 warch: ia32 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
58 bits: 32 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
59 msystem: MINGW32 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
60 cygreg: registry32 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
61 pyreg: "-32" |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
62 exclude: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
63 - toolchain: msvc |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
64 arch: x64 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
65 features: NORMAL |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
66 - toolchain: mingw |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
67 arch: x86 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
68 features: NORMAL |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
69 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
70 steps: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
71 - name: Initalize |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
72 id: init |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
73 shell: bash |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
74 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
75 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
|
76 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
|
77 python3_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON3_VER_DOT}${{ matrix.pyreg }}/InstallPath/@") |
22561
392c7bd6fa36
patch 8.2.1829: warnings when executing Github actions
Bram Moolenaar <Bram@vim.org>
parents:
22373
diff
changeset
|
78 echo "PYTHON_DIR=$python_dir" >> $GITHUB_ENV |
392c7bd6fa36
patch 8.2.1829: warnings when executing Github actions
Bram Moolenaar <Bram@vim.org>
parents:
22373
diff
changeset
|
79 echo "PYTHON3_DIR=$python3_dir" >> $GITHUB_ENV |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
80 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
81 - 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
|
82 if: matrix.toolchain == 'mingw' |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
83 with: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
84 msystem: ${{ matrix.msystem }} |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
85 release: false |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
86 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
87 - uses: actions/checkout@v2 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
88 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
89 - 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
|
90 shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
91 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
92 type NUL > urls.txt |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
93 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
|
94 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
|
95 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
96 - name: Cache downloaded files |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
97 uses: actions/cache@v2 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
98 with: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
99 path: downloads |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
100 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
|
101 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
102 - name: Download dependencies |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
103 shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
104 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
105 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
|
106 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
|
107 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
108 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
|
109 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
|
110 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
|
111 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
112 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
|
113 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
|
114 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
|
115 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
|
116 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
|
117 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
118 goto :eof |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
119 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
120 :downloadfile |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
121 :: call :downloadfile <URL> <localfile> |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
122 if not exist %2 ( |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
123 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
|
124 ) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
125 if ERRORLEVEL 1 ( |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
126 rem Retry once. |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
127 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
|
128 ) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
129 goto :eof |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
130 |
22011
2b6d696b063d
patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents:
21568
diff
changeset
|
131 - 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
|
132 shell: cmd |
2b6d696b063d
patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents:
21568
diff
changeset
|
133 run: | |
2b6d696b063d
patch 8.2.1555: not all tests are executed on Github Actions
Bram Moolenaar <Bram@vim.org>
parents:
21568
diff
changeset
|
134 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
|
135 |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
136 - name: Build (MSVC) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
137 if: matrix.toolchain == 'msvc' |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
138 shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
139 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
140 call "%VCVARSALL%" ${{ matrix.vcarch }} |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
141 cd src |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
142 :: 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
|
143 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
|
144 if "${{ matrix.features }}"=="HUGE" ( |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
145 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
|
146 FEATURES=${{ matrix.features }} ^ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
147 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
|
148 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
|
149 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
|
150 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
|
151 ) else ( |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
152 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
|
153 FEATURES=${{ matrix.features }} ^ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
154 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
|
155 ) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
156 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
|
157 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
|
158 exit 1 |
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 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
161 - name: Build (MinGW) |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
162 if: matrix.toolchain == 'mingw' |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
163 shell: msys2 {0} |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
164 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
165 cd src |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
166 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
|
167 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
|
168 FEATURES=${{ matrix.features }} \ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
169 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
|
170 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
|
171 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
|
172 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
|
173 STATIC_STDCPLUS=yes |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
174 else |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
175 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
|
176 FEATURES=${{ matrix.features }} \ |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
177 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
|
178 STATIC_STDCPLUS=yes |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
179 fi |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
180 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
181 # - name: Prepare Artifact |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
182 # shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
183 # run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
184 # mkdir 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.exe artifacts |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
186 # 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
|
187 # |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
188 # - name: Upload Artifact |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
189 # 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
|
190 # with: |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
191 # 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
|
192 # path: ./artifacts |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
193 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
194 - name: Test |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
195 shell: cmd |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
196 timeout-minutes: 20 |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
197 run: | |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
198 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
|
199 call "%VCVARSALL%" ${{ matrix.vcarch }} |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
200 cd src |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
201 echo. |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
202 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
|
203 .\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
|
204 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
205 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
|
206 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
|
207 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
208 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
|
209 cd testdir |
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
210 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
|
211 cd .. |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
212 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
213 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
|
214 cd ..\src2\testdir |
21568
a87ab06501ad
patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents:
21560
diff
changeset
|
215 :: Wait about 10 minutes. |
22373
294f27aeced4
patch 8.2.1735: Github actions appear to timeout too soon
Bram Moolenaar <Bram@vim.org>
parents:
22011
diff
changeset
|
216 for /L %%i in (1,1,60) do ( |
21560
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
217 if exist done.txt goto exitloop |
22373
294f27aeced4
patch 8.2.1735: Github actions appear to timeout too soon
Bram Moolenaar <Bram@vim.org>
parents:
22011
diff
changeset
|
218 timeout 10 |
21534
69a59cc69519
patch 8.2.1317: MS-Windows tests on AppVeyor are slow
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
219 ) |
21568
a87ab06501ad
patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents:
21560
diff
changeset
|
220 set timeout=1 |
21560
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
221 :exitloop |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
222 |
614fcbd8275e
patch 8.2.1330: Github workflow takes longer than needed
Bram Moolenaar <Bram@vim.org>
parents:
21542
diff
changeset
|
223 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
|
224 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
|
225 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
|
226 if "%timeout%"=="1" ( |
a87ab06501ad
patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents:
21560
diff
changeset
|
227 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
|
228 exit 1 |
a87ab06501ad
patch 8.2.1334: Github workflow timeout needs tuning
Bram Moolenaar <Bram@vim.org>
parents:
21560
diff
changeset
|
229 ) |