Skip to content

Commit b3cd8a5

Browse files
authored
Merge pull request #1286 from ychin/fix-ci-vimtags-generation
Fix MacVim CI not re-generating help tags properly
2 parents c3c27f9 + cc43421 commit b3cd8a5

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/ci-macvim.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,27 @@ jobs:
158158
cat src/auto/config.mk
159159
cat src/auto/config.h
160160
161-
- name: Build
161+
# Build Vim first, separately from MacVim, so that we can use it to run
162+
# vimtags afterwards to get the most correct help tags before we copy
163+
# that into the MacVim bundle.
164+
- name: Build Vim
165+
env:
166+
LC_ALL: C
167+
run: |
168+
set -o verbose
169+
170+
NPROC=$(getconf _NPROCESSORS_ONLN)
171+
echo "Building Vim with ${NPROC} cores"
172+
173+
make -C src -j${NPROC} Vim
174+
175+
# Re-generate Vim help tags, because sometimes the Vim's runtime is not
176+
# updated to have the latest tags.
177+
- name: Update Vim help tags
178+
if: matrix.publish
179+
run: make -C runtime/doc vimtags VIMEXE=../../src/vim
180+
181+
- name: Build MacVim
162182
env:
163183
LC_ALL: C
164184
run: |
@@ -210,10 +230,6 @@ jobs:
210230
check_arch "${VIM_BIN}"
211231
check_arch "${MACVIM_BIN}"
212232
213-
- name: Update Vim help tags
214-
if: matrix.publish
215-
run: make -C runtime/doc vimtags VIMEXE=../../${VIM_BIN}
216-
217233
- name: Test
218234
timeout-minutes: 20
219235
run: make test

0 commit comments

Comments
 (0)