"${SRCDIR}"/vim --version
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
+ if ${{ matrix.features == 'huge' }}; then
+ # Also check that optional and dynamic features are configured and working
+ "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 \
+ -c "let g:required=['gettext', 'sodium', 'sound', 'perl', 'python3', 'lua', 'ruby', 'tcl']" \
+ -S ci/if_feat_check.vim -c quit
+ fi
- name: Test
if: matrix.architecture != 'arm64'
"${SRCDIR}"/vim --version
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
+ if ${{ matrix.features == 'huge' }}; then
+ # Also check that optional and dynamic features are configured and working
+ "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 \
+ -c "let g:required=['sound', 'perl', 'python3', 'lua', 'ruby', 'tcl']" \
+ -S ci/if_feat_check.vim -c quit
+ fi
- name: Install packages for testing
run: |
src\vim --version || exit 1
src\vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
src\vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
+ if "${{ matrix.features }}"=="HUGE" (
+ src\vim -u NONE -i NONE --not-a-term -esNX -V1 ^
+ -c "let g:required=['gettext', 'sodium', 'sound', 'python3', 'lua']" ^
+ -S ci/if_feat_check.vim -c quit
+ )
)
#- name: Prepare Artifact
--- /dev/null
+if 1 " This prevents it from being run in tiny versions
+ " Check for required features
+ if exists("g:required")
+ for feature in g:required
+ if !has(feature)
+ echo "Error: Feature '" .. feature .. "' not found"
+ echo ''
+ cquit
+ endif
+ endfor
+ echo "\nChecked features: " .. string(g:required)
+ echo ''
+ endif
+endif
+" vim: sts=2 sw=2 et
-" Print py3 interface versions for Ubuntu. Part 2.
+" Print py3 interface versions. Part 2.
+" This is done separately from part 1 because Vim cannot concurrently load
+" Python 2 and 3 together.
-if 1
+if 1 " This prevents it from being run in tiny versions
execute 'source' expand('<sfile>:h') .. '/if_ver-cmd.vim'
echo 'Python 3:'