mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
Attempt running Windows rests relative to GitHub dir
This commit is contained in:
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
@@ -42,45 +42,42 @@ jobs:
|
|||||||
# Stop git from changing newlines
|
# Stop git from changing newlines
|
||||||
run: git config --global core.autocrlf input
|
run: git config --global core.autocrlf input
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
path: C:\testplugin
|
|
||||||
- name: Try to Restore Vim
|
- name: Try to Restore Vim
|
||||||
id: cache-vim
|
id: cache-vim
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: C:\vim
|
path: vim
|
||||||
key: ${{ runner.os }}-vim
|
key: ${{ runner.os }}-vim
|
||||||
- name: Install Vim
|
- name: Install Vim
|
||||||
if: steps.cache-vim.outputs.cache-hit != 'true'
|
if: steps.cache-vim.outputs.cache-hit != 'true'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: >-
|
run: >-
|
||||||
if (!(Test-Path -Path C:\vim)){
|
if (!(Test-Path -Path vim)){
|
||||||
Add-Type -A System.IO.Compression.FileSystem
|
Add-Type -A System.IO.Compression.FileSystem
|
||||||
Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586w32.zip `
|
Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586w32.zip `
|
||||||
-OutFile C:\vim.zip
|
-OutFile vim.zip
|
||||||
[IO.Compression.ZipFile]::ExtractToDirectory('C:\vim.zip', 'C:\vim')
|
[IO.Compression.ZipFile]::ExtractToDirectory('vim.zip', 'vim')
|
||||||
Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586rt.zip `
|
Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586rt.zip `
|
||||||
-OutFile C:\rt.zip
|
-OutFile rt.zip
|
||||||
[IO.Compression.ZipFile]::ExtractToDirectory('C:\rt.zip', 'C:\vim')
|
[IO.Compression.ZipFile]::ExtractToDirectory('rt.zip', 'vim')
|
||||||
}
|
}
|
||||||
- name: Try to Restore Vader
|
- name: Try to Restore Vader
|
||||||
id: cache-vader
|
id: cache-vader
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: C:\vader
|
path: vader
|
||||||
key: ${{ runner.os }}-vader
|
key: ${{ runner.os }}-vader
|
||||||
- name: Install Vader
|
- name: Install Vader
|
||||||
if: steps.cache-vader.outputs.cache-hit != 'true'
|
if: steps.cache-vader.outputs.cache-hit != 'true'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run:
|
run:
|
||||||
if (!(Test-Path -Path C:\vader)){
|
if (!(Test-Path -Path vader)){
|
||||||
git clone https://github.com/junegunn/vader.vim C:\vader 2> $null
|
git clone https://github.com/junegunn/vader.vim vader 2> $null
|
||||||
cd C:\vader
|
cd vader
|
||||||
git checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af 2> $null
|
git checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af 2> $null
|
||||||
}
|
}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
# yamllint disable rule:line-length
|
# yamllint disable rule:line-length
|
||||||
run: |
|
run: |
|
||||||
cd C:\testplugin
|
vim\vim\vim80\vim.exe -u test\vimrc "+Vader! test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*.vader"
|
||||||
C:\vim\vim\vim80\vim.exe -u test\vimrc "+Vader! test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*.vader"
|
|
||||||
# yamllint enable rule:line-length
|
# yamllint enable rule:line-length
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ hi link aleerrorline spellbad
|
|||||||
" Load builtin plugins
|
" Load builtin plugins
|
||||||
" We need this because run_vim.sh sets -i NONE
|
" We need this because run_vim.sh sets -i NONE
|
||||||
if has('win32')
|
if has('win32')
|
||||||
set runtimepath=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,C:\vader,C:\testplugin
|
set runtimepath=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,C:\vader,$PWD/vader,C:\testplugin,$PWD
|
||||||
else
|
else
|
||||||
set runtimepath=/home/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,/testplugin,/vader
|
set runtimepath=/home/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,/testplugin,/vader
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user