Skip to content

Commit

Permalink
CI: Refactor the matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Jul 31, 2024
1 parent 3c868f2 commit 6e28864
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
vim_type: ['Vim', 'Neovim']
version: ['head', 'stable', 'oldest']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
download: ['available', 'never']

include:
- vim_type: 'Vim'
Expand All @@ -29,22 +28,7 @@ jobs:
- vim_type: 'Neovim'
version: 'oldest'

# download == 'available' is preferred, but it doesn't work well on
# Ubuntu with Vim. (Appimage versions of Vim cause troubles because
# it changes LD_LIBRARY_PATH.)
- vim_type: 'Neovim'
download: 'never'
- vim_type: 'Vim'
os: 'ubuntu-latest'
download: 'available'
- vim_type: 'Vim'
os: 'macos-latest'
download: 'never'
- vim_type: 'Vim'
os: 'windows-latest'
download: 'never'

# FIXME: Oldest vim doesn't work on macOS. Disable it for now.
# Oldest vim doesn't work on macOS any more.
- vim_type: 'Vim'
version: 'oldest'
os: 'mac-latest'
Expand All @@ -61,7 +45,11 @@ jobs:
with:
vim_version: '${{ matrix.vim_version || matrix.version }}'
vim_type: '${{ matrix.vim_type }}'
download: '${{ matrix.download }}'

# download == 'available' is preferred, but it doesn't work well on
# Ubuntu with Vim. (Appimage versions of Vim cause troubles because
# it changes LD_LIBRARY_PATH.)
download: ${{ (matrix.vim_type == 'Vim' && matrix.os == 'ubuntu-latest') && 'never' || 'available' }}

- name: 'Run test (Windows)'
if: ${{ startsWith(matrix.os, 'windows') }}
Expand Down

0 comments on commit 6e28864

Please sign in to comment.