annotate .github/workflows/ci.yml @ 29881:0cc9a3001717 v9.0.0279

patch 9.0.0279: the tiny version has the popup menu but not 'wildmenu' Commit: https://github.com/vim/vim/commit/5416232707349d5f24294178f47544f2024b73ed Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 16:58:51 2022 +0100 patch 9.0.0279: the tiny version has the popup menu but not 'wildmenu' Problem: The tiny version has the popup menu but not 'wildmenu'. Solution: Graduate the wildmenu feature.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 18:00:05 +0200
parents bbd39d6faab3
children 275877ab83f0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 name: GitHub CI
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2
23221
4046b3d17d60 patch 8.2.2156: Github actions run on pusing a tag
Bram Moolenaar <Bram@vim.org>
parents: 23209
diff changeset
3 on:
4046b3d17d60 patch 8.2.2156: Github actions run on pusing a tag
Bram Moolenaar <Bram@vim.org>
parents: 23209
diff changeset
4 push:
4046b3d17d60 patch 8.2.2156: Github actions run on pusing a tag
Bram Moolenaar <Bram@vim.org>
parents: 23209
diff changeset
5 branches: ['**']
4046b3d17d60 patch 8.2.2156: Github actions run on pusing a tag
Bram Moolenaar <Bram@vim.org>
parents: 23209
diff changeset
6 pull_request:
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7
26725
11383a35b497 patch 8.2.3891: github CI: workflows may overlap
Bram Moolenaar <Bram@vim.org>
parents: 26583
diff changeset
8 # Cancels all previous workflow runs for pull requests that have not completed.
11383a35b497 patch 8.2.3891: github CI: workflows may overlap
Bram Moolenaar <Bram@vim.org>
parents: 26583
diff changeset
9 concurrency:
11383a35b497 patch 8.2.3891: github CI: workflows may overlap
Bram Moolenaar <Bram@vim.org>
parents: 26583
diff changeset
10 # The concurrency group contains the workflow name and the branch name for
11383a35b497 patch 8.2.3891: github CI: workflows may overlap
Bram Moolenaar <Bram@vim.org>
parents: 26583
diff changeset
11 # pull requests or the commit hash for any other events.
11383a35b497 patch 8.2.3891: github CI: workflows may overlap
Bram Moolenaar <Bram@vim.org>
parents: 26583
diff changeset
12 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
11383a35b497 patch 8.2.3891: github CI: workflows may overlap
Bram Moolenaar <Bram@vim.org>
parents: 26583
diff changeset
13 cancel-in-progress: true
11383a35b497 patch 8.2.3891: github CI: workflows may overlap
Bram Moolenaar <Bram@vim.org>
parents: 26583
diff changeset
14
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 jobs:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 linux:
29851
bbd39d6faab3 patch 9.0.0264: CI still runs on Ubuntu 18.04
Bram Moolenaar <Bram@vim.org>
parents: 29200
diff changeset
17 runs-on: ubuntu-20.04
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 env:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 CC: ${{ matrix.compiler }}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 TEST: test
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 SRCDIR: ./src
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 LEAK_CFLAGS: -DEXITFREE
28479
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
24 CFLAGS: -Wno-error=deprecated-declarations
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 LOG_DIR: ${{ github.workspace }}/logs
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 TERM: xterm
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 DISPLAY: ':99'
23258
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
28 DEBIAN_FRONTEND: noninteractive
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 strategy:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 fail-fast: false
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 matrix:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 features: [tiny, small, normal, huge]
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 compiler: [clang, gcc]
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 extra: [none]
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 include:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 - features: tiny
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 compiler: clang
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 extra: nogui
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 - features: tiny
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 compiler: gcc
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 extra: nogui
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 - features: normal
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 shadow: ./src/shadow
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 - features: huge
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 coverage: true
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 - features: huge
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 compiler: gcc
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 coverage: true
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 extra: testgui
25895
8e9864b98846 patch 8.2.3481: failures when char is unsigned
Bram Moolenaar <Bram@vim.org>
parents: 25830
diff changeset
51 uchar: true
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 - features: huge
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 compiler: clang
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 extra: asan
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 - features: huge
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 compiler: gcc
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57 coverage: true
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
58 extra: unittests
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
59 - features: normal
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
60 compiler: gcc
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61 extra: vimtags
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63 steps:
29060
a8c0c5865e73 patch 8.2.5052: CI checkout step title is a bit cryptic
Bram Moolenaar <Bram@vim.org>
parents: 28927
diff changeset
64 - name: Checkout repository from github
a8c0c5865e73 patch 8.2.5052: CI checkout step title is a bit cryptic
Bram Moolenaar <Bram@vim.org>
parents: 28927
diff changeset
65 uses: actions/checkout@v3
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
66
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 - name: Install packages
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68 run: |
27134
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
69 PKGS=( \
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
70 gettext \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
71 libgtk2.0-dev \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
72 desktop-file-utils \
24970
7e9e53a0368f patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents: 23929
diff changeset
73 libtool-bin \
27134
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
74 )
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
75 if ${{ matrix.features == 'huge' }}; then
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
76 PKGS+=( \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
77 autoconf \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
78 lcov \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
79 libcanberra-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
80 libperl-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
81 python-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
82 python3-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
83 liblua5.3-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
84 lua5.3 \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
85 ruby-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
86 tcl-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
87 cscope \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
88 libsodium-dev \
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
89 )
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
90 fi
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
91 sudo apt update && sudo apt install -y "${PKGS[@]}"
23258
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
92
28479
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
93 - name: Install gcc-11
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
94 if: matrix.compiler == 'gcc'
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
95 run: |
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
96 sudo add-apt-repository ppa:ubuntu-toolchain-r/test
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
97 sudo apt install -y gcc-11
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
98 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
99 sudo update-alternatives --set gcc /usr/bin/gcc-11
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
100
28437
c01ae844a9cc patch 8.2.4743: clang 14 is available on CI
Bram Moolenaar <Bram@vim.org>
parents: 27815
diff changeset
101 - name: Install clang-14
23258
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
102 if: matrix.compiler == 'clang'
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
103 run: |
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
104 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
105 . /etc/lsb-release
28437
c01ae844a9cc patch 8.2.4743: clang 14 is available on CI
Bram Moolenaar <Bram@vim.org>
parents: 27815
diff changeset
106 sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-14 main"
28479
da67829ad0d3 patch 8.2.4764: CI uses an older gcc version
Bram Moolenaar <Bram@vim.org>
parents: 28437
diff changeset
107 sudo apt install -y clang-14 llvm-14
28437
c01ae844a9cc patch 8.2.4743: clang 14 is available on CI
Bram Moolenaar <Bram@vim.org>
parents: 27815
diff changeset
108 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 100
c01ae844a9cc patch 8.2.4743: clang 14 is available on CI
Bram Moolenaar <Bram@vim.org>
parents: 27815
diff changeset
109 sudo update-alternatives --set clang /usr/bin/clang-14
c01ae844a9cc patch 8.2.4743: clang 14 is available on CI
Bram Moolenaar <Bram@vim.org>
parents: 27815
diff changeset
110 sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-14 100
c01ae844a9cc patch 8.2.4743: clang 14 is available on CI
Bram Moolenaar <Bram@vim.org>
parents: 27815
diff changeset
111 sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-14 100
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
112
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
113 - name: Set up environment
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
114 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
115 mkdir -p "${LOG_DIR}"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
116 mkdir -p "${HOME}/bin"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
117 echo "${HOME}/bin" >> $GITHUB_PATH
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
118 (
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
119 echo "LINUX_VERSION=$(uname -r)"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
120 echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
121 echo "SND_DUMMY_DIR=${HOME}/snd-dummy"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
122 echo "TMPDIR=${{ runner.temp }}"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
123
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
124 case "${{ matrix.features }}" in
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
125 tiny|small)
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
126 echo "TEST=testtiny"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
127 if ${{ contains(matrix.extra, 'nogui') }}; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
128 echo "CONFOPT=--disable-gui"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
129 fi
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
130 ;;
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
131 normal)
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
132 ;;
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
133 huge)
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
134 echo "TEST=scripttests test_libvterm"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
135 echo "CONFOPT=--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
136 ;;
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
137 esac
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
138
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
139 if ${{ matrix.coverage == true }}; then
25895
8e9864b98846 patch 8.2.3481: failures when char is unsigned
Bram Moolenaar <Bram@vim.org>
parents: 25830
diff changeset
140 CFLAGS="$CFLAGS --coverage -DUSE_GCOV_FLUSH"
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
141 echo "LDFLAGS=--coverage"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
142 fi
25895
8e9864b98846 patch 8.2.3481: failures when char is unsigned
Bram Moolenaar <Bram@vim.org>
parents: 25830
diff changeset
143 if ${{ matrix.uchar == true }}; then
8e9864b98846 patch 8.2.3481: failures when char is unsigned
Bram Moolenaar <Bram@vim.org>
parents: 25830
diff changeset
144 CFLAGS="$CFLAGS -funsigned-char"
8e9864b98846 patch 8.2.3481: failures when char is unsigned
Bram Moolenaar <Bram@vim.org>
parents: 25830
diff changeset
145 fi
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
146 if ${{ contains(matrix.extra, 'testgui') }}; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
147 echo "TEST=-C src testgui"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
148 fi
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
149 if ${{ contains(matrix.extra, 'unittests') }}; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
150 echo "TEST=unittests"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
151 fi
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
152 if ${{ contains(matrix.extra, 'asan') }}; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
153 echo "SANITIZER_CFLAGS=-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize-recover=all -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
154 echo "ASAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/asan"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
155 echo "UBSAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/ubsan"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
156 echo "LSAN_OPTIONS=suppressions=${GITHUB_WORKSPACE}/src/testdir/lsan-suppress.txt"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
157 fi
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
158 if ${{ contains(matrix.extra, 'vimtags') }}; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
159 echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
160 fi
25895
8e9864b98846 patch 8.2.3481: failures when char is unsigned
Bram Moolenaar <Bram@vim.org>
parents: 25830
diff changeset
161 echo "CFLAGS=$CFLAGS"
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
162 ) >> $GITHUB_ENV
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
163
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
164 - name: Set up system
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
165 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
166 if [[ ${CC} = clang ]]; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
167 # Use llvm-cov instead of gcov when compiler is clang.
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
168 ln -fs /usr/bin/llvm-cov ${HOME}/bin/gcov
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
169 fi
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
170 sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
171 sudo usermod -a -G audio "${USER}"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
172 sudo bash ci/setup-xvfb.sh
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
173
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
174 - name: Cache snd-dummy
29200
1ef87506a3a6 patch 8.2.5119: CI uses cache v2
Bram Moolenaar <Bram@vim.org>
parents: 29132
diff changeset
175 uses: actions/cache@v3
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
176 with:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
177 path: ${{ env.SND_DUMMY_DIR }}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
178 key: linux-${{ env.LINUX_VERSION }}-snd-dummy
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
179
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
180 - name: Set up snd-dummy
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
181 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
182 if [[ ! -e ${SND_DUMMY_DIR}/snd-dummy.ko ]]; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
183 bash ci/build-snd-dummy.sh
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
184 fi
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
185 cd "${SND_DUMMY_DIR}"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
186 sudo insmod soundcore.ko
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
187 sudo insmod snd.ko
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
188 sudo insmod snd-pcm.ko
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
189 sudo insmod snd-dummy.ko
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
190
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
191 - name: Check autoconf
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
192 if: contains(matrix.extra, 'unittests')
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
193 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
194 make -C src autoconf
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
195
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
196 - name: Set up shadow dir
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
197 if: matrix.shadow
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
198 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
199 make -C src shadow
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
200 echo "SRCDIR=${{ matrix.shadow }}" >> $GITHUB_ENV
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
201 echo "SHADOWOPT=-C ${{ matrix.shadow }}" >> $GITHUB_ENV
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
202
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
203 - name: Configure
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
204 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
205 ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
206 # Append various warning flags to CFLAGS.
23258
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
207 sed -i -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
208 sed -i -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
26480
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
209 if [[ ${CC} = clang ]]; then
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
210 # Suppress some warnings produced by clang 12 and later.
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
211 sed -i -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
212 fi
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
213
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
214 - name: Build
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
215 if: (!contains(matrix.extra, 'unittests'))
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
216 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
217 make ${SHADOWOPT} -j${NPROC}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
218
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
219 - name: Check version
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
220 if: (!contains(matrix.extra, 'unittests'))
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
221 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
222 "${SRCDIR}"/vim --version
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
223 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
224 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
225
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
226 - name: Test
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
227 timeout-minutes: 20
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
228 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
229 do_test() { sg audio "sg $(id -gn) '$*'"; }
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
230 do_test make ${SHADOWOPT} ${TEST}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
231
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
232 # - name: Coveralls
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
233 # if: matrix.coverage && github.event_name != 'pull_request'
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
234 # env:
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
235 # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
236 # COVERALLS_PARALLEL: true
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
237 # TRAVIS_JOB_ID: ${{ github.run_id }}
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
238 # run: |
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
239 # sudo apt-get install -y python3-setuptools python3-wheel
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
240 # sudo -H pip3 install pip -U
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
241 # # needed for https support for coveralls building cffi only works with gcc, not with clang
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
242 # CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
243 # ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
244
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
245 - name: Generate gcov files
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
246 if: matrix.coverage
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
247 run: |
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
248 cd "${SRCDIR}"
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
249 find . -type f -name '*.gcno' -exec gcov -pb {} + || true
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
250
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
251 - name: Codecov
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
252 if: matrix.coverage
28584
74d5c6fbdf5a patch 8.2.4816: still using older codecov app in some places of CI
Bram Moolenaar <Bram@vim.org>
parents: 28487
diff changeset
253 uses: codecov/codecov-action@v3.1.0
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
254 with:
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
255 flags: linux,${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
256
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
257 - name: ASan logs
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
258 if: contains(matrix.extra, 'asan') && !cancelled()
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
259 run: |
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
260 for f in $(grep -lR '#[[:digit:]]* *0x[[:xdigit:]]*' "${LOG_DIR}"); do
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
261 asan_symbolize -l "$f"
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
262 false # in order to fail a job
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
263 done
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
264
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
265 # coveralls:
29851
bbd39d6faab3 patch 9.0.0264: CI still runs on Ubuntu 18.04
Bram Moolenaar <Bram@vim.org>
parents: 29200
diff changeset
266 # runs-on: ubuntu-20.04
25830
e2d74d655b75 patch 8.2.3450: coveralls action fails
Bram Moolenaar <Bram@vim.org>
parents: 25402
diff changeset
267 #
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
268 # needs: linux
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
269 # if: always() && github.event_name != 'pull_request'
25830
e2d74d655b75 patch 8.2.3450: coveralls action fails
Bram Moolenaar <Bram@vim.org>
parents: 25402
diff changeset
270 #
27065
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
271 # steps:
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
272 # - name: Parallel finished
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
273 # env:
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
274 # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
275 # run: |
f1f47818f16e patch 8.2.4061: codecov bash script is deprecated
Bram Moolenaar <Bram@vim.org>
parents: 26725
diff changeset
276 # curl -k "https://coveralls.io/webhook?repo_token=${COVERALLS_REPO_TOKEN}" -d "payload[build_num]=${GITHUB_RUN_ID}&payload[status]=done"
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
277
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
278 macos:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
279 runs-on: macos-latest
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
280
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
281 env:
26510
3772e454a7fb patch 8.2.3785: running CI on MacOS with gcc is not useful
Bram Moolenaar <Bram@vim.org>
parents: 26480
diff changeset
282 CC: clang
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
283 TEST: test
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
284 SRCDIR: ./src
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
285 LEAK_CFLAGS: -DEXITFREE
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
286 TERM: xterm
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
287
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
288 strategy:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
289 fail-fast: false
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
290 matrix:
26510
3772e454a7fb patch 8.2.3785: running CI on MacOS with gcc is not useful
Bram Moolenaar <Bram@vim.org>
parents: 26480
diff changeset
291 features: [tiny, normal, huge]
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
292
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
293 steps:
29060
a8c0c5865e73 patch 8.2.5052: CI checkout step title is a bit cryptic
Bram Moolenaar <Bram@vim.org>
parents: 28927
diff changeset
294 - name: Checkout repository from github
a8c0c5865e73 patch 8.2.5052: CI checkout step title is a bit cryptic
Bram Moolenaar <Bram@vim.org>
parents: 28927
diff changeset
295 uses: actions/checkout@v3
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
296
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
297 - name: Install packages
27134
1ea88ee85a7a patch 8.2.4096: Linux CI: unnecessarily installing packages
Bram Moolenaar <Bram@vim.org>
parents: 27126
diff changeset
298 if: matrix.features == 'huge'
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
299 env:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
300 HOMEBREW_NO_AUTO_UPDATE: 1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
301 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
302 brew install lua
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
303 echo "LUA_PREFIX=/usr/local" >> $GITHUB_ENV
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
304
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
305 - name: Set up environment
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
306 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
307 (
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
308 echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
309 case "${{ matrix.features }}" in
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
310 tiny)
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
311 echo "TEST=testtiny"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
312 echo "CONFOPT=--disable-gui"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
313 ;;
26510
3772e454a7fb patch 8.2.3785: running CI on MacOS with gcc is not useful
Bram Moolenaar <Bram@vim.org>
parents: 26480
diff changeset
314 normal)
3772e454a7fb patch 8.2.3785: running CI on MacOS with gcc is not useful
Bram Moolenaar <Bram@vim.org>
parents: 26480
diff changeset
315 ;;
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
316 huge)
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
317 echo "CONFOPT=--enable-perlinterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
318 ;;
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
319 esac
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
320 ) >> $GITHUB_ENV
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
321
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
322 - name: Configure
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
323 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
324 ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
325 # Append various warning flags to CFLAGS.
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
326 # BSD sed needs backup extension specified.
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
327 sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
328 # On macOS, the entity of gcc is clang.
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
329 sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk
26480
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
330 # Suppress some warnings produced by clang 12 and later.
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
331 if clang --version | grep -qs 'Apple clang version \(1[3-9]\|[2-9]\)\.'; then
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
332 sed -i.bak -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
cf986610be6a patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Bram Moolenaar <Bram@vim.org>
parents: 25933
diff changeset
333 fi
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
334
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
335 - name: Build
23258
262b38ddf72d patch 8.2.2175: github actions: clang-11 handling suboptimal
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
336 env:
23388
57e79eda1a62 patch 8.2.2237: CI on Mac fails in sed command
Bram Moolenaar <Bram@vim.org>
parents: 23293
diff changeset
337 LC_ALL: C
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
338 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
339 make -j${NPROC}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
340
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
341 - name: Check version
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
342 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
343 "${SRCDIR}"/vim --version
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
344 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
345 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
346
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
347 - name: Test
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
348 timeout-minutes: 20
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
349 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
350 make ${TEST}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
351
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
352 windows:
29132
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
353 runs-on: windows-2022
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
354
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
355 env:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
356 # Interfaces
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
357 # Lua
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
358 LUA_VER: 54
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
359 LUA_VER_DOT: '5.4'
27655
3d4609ea2b58 patch 8.2.4353: CI does not use the latest Lua and Python
Bram Moolenaar <Bram@vim.org>
parents: 27651
diff changeset
360 LUA_RELEASE: 5.4.2
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
361 LUA32_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win32_dllw6_lib.zip
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
362 LUA64_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win64_dllw6_lib.zip
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
363 LUA_DIR: D:\Lua
28664
0e589fdf0081 patch 8.2.4856: MinGW compiler complains about unknown escape sequence
Bram Moolenaar <Bram@vim.org>
parents: 28584
diff changeset
364 # do not want \L to end up in pathdef.c and compiler complaining about unknown escape sequences \l
0e589fdf0081 patch 8.2.4856: MinGW compiler complains about unknown escape sequence
Bram Moolenaar <Bram@vim.org>
parents: 28584
diff changeset
365 LUA_DIR_SLASH: D:/Lua
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
366 # Python 2
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
367 PYTHON_VER: 27
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
368 PYTHON_VER_DOT: '2.7'
29132
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
369 PYTHON_DIR: 'C:\Python27'
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
370 # Python 3
27655
3d4609ea2b58 patch 8.2.4353: CI does not use the latest Lua and Python
Bram Moolenaar <Bram@vim.org>
parents: 27651
diff changeset
371 PYTHON3_VER: 310
3d4609ea2b58 patch 8.2.4353: CI does not use the latest Lua and Python
Bram Moolenaar <Bram@vim.org>
parents: 27651
diff changeset
372 PYTHON3_VER_DOT: '3.10'
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
373 # Other dependencies
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
374 # winpty
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
375 WINPTY_URL: https://github.com/rprichard/winpty/releases/download/0.4.3/winpty-0.4.3-msvc2015.zip
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
376 # Escape sequences
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
377 COL_RED: "\x1b[31m"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
378 COL_GREEN: "\x1b[32m"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
379 COL_YELLOW: "\x1b[33m"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
380 COL_RESET: "\x1b[m"
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
381
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
382 strategy:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
383 fail-fast: false
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
384 matrix:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
385 toolchain: [msvc, mingw]
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
386 arch: [x64, x86]
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
387 features: [HUGE, NORMAL]
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
388 include:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
389 - arch: x64
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
390 vcarch: amd64
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
391 warch: x64
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
392 bits: 64
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
393 msystem: MINGW64
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
394 cygreg: registry
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
395 pyreg: ""
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
396 - arch: x86
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
397 vcarch: x86
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
398 warch: ia32
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
399 bits: 32
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
400 msystem: MINGW32
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
401 cygreg: registry32
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
402 pyreg: "-32"
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
403 - toolchain: mingw
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
404 arch: x64
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
405 features: HUGE
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
406 coverage: yes
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
407 exclude:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
408 - toolchain: msvc
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
409 arch: x64
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
410 features: NORMAL
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
411 - toolchain: mingw
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
412 arch: x86
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
413 features: NORMAL
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
414
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
415 steps:
25402
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24994
diff changeset
416 - name: Initialize
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
417 id: init
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
418 shell: bash
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
419 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
420 git config --global core.autocrlf input
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
421 echo "VCVARSALL=$(vswhere -products \* -latest -property installationPath)\\VC\\Auxiliary\\Build\\vcvarsall.bat" >> $GITHUB_ENV
29132
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
422 if [ "${{ matrix.arch }}" = "x86" ]; then
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
423 choco install python2 --forcex86
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
424 else
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
425 choco install python2
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
426 fi
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
427 python3_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON3_VER_DOT}${{ matrix.pyreg }}/InstallPath/@")
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
428 echo "PYTHON3_DIR=$python3_dir" >> $GITHUB_ENV
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
429
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
430 - uses: msys2/setup-msys2@v2
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
431 if: matrix.toolchain == 'mingw'
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
432 with:
29132
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
433 update: true
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
434 install: tar
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
435 pacboy: >-
8957a70ce228 patch 8.2.5086: CI runs on Windows 2019
Bram Moolenaar <Bram@vim.org>
parents: 29060
diff changeset
436 make:p gcc:p
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
437 msystem: ${{ matrix.msystem }}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
438 release: false
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
439
29060
a8c0c5865e73 patch 8.2.5052: CI checkout step title is a bit cryptic
Bram Moolenaar <Bram@vim.org>
parents: 28927
diff changeset
440 - name: Checkout repository from github
a8c0c5865e73 patch 8.2.5052: CI checkout step title is a bit cryptic
Bram Moolenaar <Bram@vim.org>
parents: 28927
diff changeset
441 uses: actions/checkout@v3
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
442
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
443 - name: Create a list of download URLs
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
444 shell: cmd
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
445 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
446 type NUL > urls.txt
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
447 echo %LUA_RELEASE%>> urls.txt
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
448 echo %WINPTY_URL%>> urls.txt
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
449
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
450 - name: Cache downloaded files
29200
1ef87506a3a6 patch 8.2.5119: CI uses cache v2
Bram Moolenaar <Bram@vim.org>
parents: 29132
diff changeset
451 uses: actions/cache@v3
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
452 with:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
453 path: downloads
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
454 key: ${{ runner.os }}-${{ matrix.bits }}-${{ hashFiles('urls.txt') }}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
455
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
456 - name: Download dependencies
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
457 shell: cmd
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
458 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
459 path C:\Program Files\7-Zip;%path%
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
460 if not exist downloads mkdir downloads
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
461
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
462 echo %COL_GREEN%Download Lua%COL_RESET%
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
463 call :downloadfile %LUA${{ matrix.bits }}_URL% downloads\lua.zip
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
464 7z x downloads\lua.zip -o%LUA_DIR% > nul || exit 1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
465
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
466 echo %COL_GREEN%Download winpty%COL_RESET%
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
467 call :downloadfile %WINPTY_URL% downloads\winpty.zip
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
468 7z x -y downloads\winpty.zip -oD:\winpty > nul || exit 1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
469 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty.dll src\winpty${{ matrix.bits }}.dll
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
470 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty-agent.exe src\
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
471
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
472 goto :eof
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
473
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
474 :downloadfile
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
475 :: call :downloadfile <URL> <localfile>
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
476 if not exist %2 (
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
477 curl -f -L %1 -o %2
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
478 )
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
479 if ERRORLEVEL 1 (
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
480 rem Retry once.
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
481 curl -f -L %1 -o %2 || exit 1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
482 )
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
483 goto :eof
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
484
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
485 - name: Copy src directory to src2
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
486 shell: cmd
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
487 run: xcopy src src2\ /E > nul
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
488
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
489 - name: Build (MSVC)
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
490 if: matrix.toolchain == 'msvc'
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
491 shell: cmd
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
492 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
493 call "%VCVARSALL%" ${{ matrix.vcarch }}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
494 cd src
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
495 if "${{ matrix.features }}"=="HUGE" (
27388
83bd6e25d0b6 patch 8.2.4222: MS-Windows: clumsy way to suppress progress on CI
Bram Moolenaar <Bram@vim.org>
parents: 27134
diff changeset
496 nmake -nologo -f Make_mvc.mak ^
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
497 FEATURES=${{ matrix.features }} ^
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
498 GUI=yes IME=yes ICONV=yes VIMDLL=yes ^
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
499 DYNAMIC_LUA=yes LUA=%LUA_DIR% ^
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
500 DYNAMIC_PYTHON=yes PYTHON=%PYTHON_DIR% ^
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
501 DYNAMIC_PYTHON3=yes PYTHON3=%PYTHON3_DIR%
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
502 ) else (
27388
83bd6e25d0b6 patch 8.2.4222: MS-Windows: clumsy way to suppress progress on CI
Bram Moolenaar <Bram@vim.org>
parents: 27134
diff changeset
503 nmake -nologo -f Make_mvc.mak ^
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
504 FEATURES=${{ matrix.features }} ^
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
505 GUI=yes IME=yes ICONV=yes VIMDLL=yes
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
506 )
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
507 if not exist vim${{ matrix.bits }}.dll (
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
508 echo %COL_RED%Build failure.%COL_RESET%
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
509 exit 1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
510 )
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
511
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
512 - name: Build (MinGW)
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
513 if: matrix.toolchain == 'mingw'
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
514 shell: msys2 {0}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
515 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
516 cd src
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
517 if [ "${{ matrix.features }}" = "HUGE" ]; then
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
518 mingw32-make -f Make_ming.mak -j2 \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
519 FEATURES=${{ matrix.features }} \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
520 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
28664
0e589fdf0081 patch 8.2.4856: MinGW compiler complains about unknown escape sequence
Bram Moolenaar <Bram@vim.org>
parents: 28584
diff changeset
521 DYNAMIC_LUA=yes LUA=${LUA_DIR_SLASH} \
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
522 DYNAMIC_PYTHON=yes PYTHON=${PYTHON_DIR} \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
523 DYNAMIC_PYTHON3=yes PYTHON3=${PYTHON3_DIR} \
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
524 STATIC_STDCPLUS=yes COVERAGE=${{ matrix.coverage }}
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
525 else
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
526 mingw32-make -f Make_ming.mak -j2 \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
527 FEATURES=${{ matrix.features }} \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
528 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
529 STATIC_STDCPLUS=yes
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
530 fi
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
531
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
532 - name: Check version
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
533 shell: cmd
27815
52a5f4a8eef5 patch 8.2.4433: CI: cannot see interface versions for MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 27702
diff changeset
534 run: |
52a5f4a8eef5 patch 8.2.4433: CI: cannot see interface versions for MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 27702
diff changeset
535 PATH %LUA_DIR%;C:\msys64\${{ matrix.msystem }}\bin;%PATH%;%PYTHON3_DIR%
52a5f4a8eef5 patch 8.2.4433: CI: cannot see interface versions for MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 27702
diff changeset
536 src\vim --version || exit 1
52a5f4a8eef5 patch 8.2.4433: CI: cannot see interface versions for MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 27702
diff changeset
537 src\vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
52a5f4a8eef5 patch 8.2.4433: CI: cannot see interface versions for MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 27702
diff changeset
538 src\vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
539
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
540 #- name: Prepare Artifact
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
541 # shell: cmd
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
542 # run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
543 # mkdir artifacts
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
544 # copy src\*vim.exe artifacts
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
545 # copy src\vim*.dll artifacts
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
546 #
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
547 #- name: Upload Artifact
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
548 # uses: actions/upload-artifact@v1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
549 # with:
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
550 # name: vim${{ matrix.bits }}-${{ matrix.toolchain }}
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
551 # path: ./artifacts
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
552
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
553 - name: Copy gcov data files to src2
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
554 if: matrix.coverage
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
555 shell: msys2 {0}
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
556 run: find src -name '*.gcno' | tar -c -T - | tar -x -C src2 --strip-components 1
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
557
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
558 - name: Test and show the result of testing gVim
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
559 shell: cmd
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
560 timeout-minutes: 20
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
561 run: |
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
562 PATH %LUA_DIR%;C:\msys64\${{ matrix.msystem }}\bin;%PATH%;%PYTHON3_DIR%
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
563 call "%VCVARSALL%" ${{ matrix.vcarch }}
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
564
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
565 echo %COL_GREEN%Start testing Vim in background.%COL_RESET%
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
566 start cmd /c "cd src2\testdir & nmake -nologo -f Make_dos.mak VIMPROG=..\..\src\vim > nul & echo done>done.txt"
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
567
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
568 echo %COL_GREEN%Test gVim:%COL_RESET%
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
569 cd src\testdir
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
570 nmake -nologo -f Make_dos.mak VIMPROG=..\gvim || exit 1
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
571
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
572 - name: Show the result of testing Vim
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
573 shell: cmd
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
574 timeout-minutes: 20
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
575 run: |
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
576 PATH %LUA_DIR%;C:\msys64\${{ matrix.msystem }}\bin;%PATH%;%PYTHON3_DIR%
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
577 call "%VCVARSALL%" ${{ matrix.vcarch }}
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
578
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
579 echo %COL_GREEN%Wait for Vim tests to finish.%COL_RESET%
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
580 cd src2\testdir
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
581 :: Wait about 10 minutes.
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
582 for /L %%i in (1,1,60) do (
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
583 if exist done.txt goto exitloop
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
584 timeout 10 > NUL 2>&1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
585 if ERRORLEVEL 1 ping -n 11 localhost > NUL
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
586 )
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
587 set timeout=1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
588 :exitloop
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
589
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
590 echo %COL_GREEN%The result of testing Vim:%COL_RESET%
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
591 cd src2\testdir
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
592 if exist messages type messages
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
593 nmake -nologo -f Make_dos.mak report VIMPROG=..\..\src\vim || exit 1
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
594
23209
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
595 if "%timeout%"=="1" (
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
596 echo %COL_RED%Timed out.%COL_RESET%
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
597 exit 1
1984a3fcc953 patch 8.2.2150: Github actions CI isn't used for all available platforms
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
598 )
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
599
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
600 - name: Generate gcov files
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
601 if: matrix.coverage
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
602 shell: msys2 {0}
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
603 run: |
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
604 cd src
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
605 find . -type f -name '*.gcno' -exec gcov -pb {} + || true
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
606 cd ../src2
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
607 find . -type f -name '*.gcno' -exec gcov -pb {} + || true
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
608
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
609 - name: Codecov (gVim)
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
610 if: matrix.coverage
28584
74d5c6fbdf5a patch 8.2.4816: still using older codecov app in some places of CI
Bram Moolenaar <Bram@vim.org>
parents: 28487
diff changeset
611 uses: codecov/codecov-action@v3.1.0
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
612 with:
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
613 directory: src
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
614 flags: windows,${{ matrix.toolchain }}-${{ matrix.arch }}-${{ matrix.features }}-gui
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
615
27702
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
616 - name: Codecov (Vim)
ae09d11b8099 patch 8.2.4377: CI steps for Windows are a bit unorganized
Bram Moolenaar <Bram@vim.org>
parents: 27655
diff changeset
617 if: matrix.coverage
28584
74d5c6fbdf5a patch 8.2.4816: still using older codecov app in some places of CI
Bram Moolenaar <Bram@vim.org>
parents: 28487
diff changeset
618 uses: codecov/codecov-action@v3.1.0
27651
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
619 with:
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
620 directory: src2
7765b0447add patch 8.2.4351: no coverage is measured on MS-Windows CI
Bram Moolenaar <Bram@vim.org>
parents: 27632
diff changeset
621 flags: windows,${{ matrix.toolchain }}-${{ matrix.arch }}-${{ matrix.features }}