]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp/.github/workflows/windows_vim.yml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit '56df844d3c39ec494dacc69eae34272b27db185a' as '.vim/bundle/asyncomplete'
[etc/vim.git] / .vim / bundle / vim-lsp / .github / workflows / windows_vim.yml
1 name: windows_vim
2
3 on:
4   push:
5     branches:
6       - master
7   pull_request:
8     branches:
9       - master
10
11 env:
12   VIM_LSP_GO_VERSION: '1.17'
13   VIM_LSP_GOPLS_VERSION: '0.7.3'
14   VIM_LSP_GOPLS_CACHE_VER: 1
15
16 jobs:
17   build:
18     strategy:
19       fail-fast: false
20       matrix:
21         os: [windows-latest]
22         name: [vim-v90-x64, vim-v82-x64, vim-v81-x64, vim-v80-x64]
23         include:
24           - name: vim-v90-x64
25             os: windows-latest
26             vim_version: 9.0.0000
27             vim_arch: x64
28             vim_ver_path: vim90
29           - name: vim-v82-x64
30             os: windows-latest
31             vim_version: 8.2.0813
32             vim_arch: x64
33             vim_ver_path: vim82
34           - name: vim-v81-x64
35             os: windows-latest
36             vim_version: 8.1.2414
37             vim_arch: x64
38             vim_ver_path: vim81
39           - name: vim-v80-x64
40             os: windows-latest
41             vim_version: 8.0.1567
42             vim_arch: x64
43             vim_ver_path: vim80
44     runs-on: ${{matrix.os}}
45     steps:
46       - uses: actions/checkout@v4
47       - name: Download vim
48         shell: PowerShell
49         run: Invoke-WebRequest -Uri https://github.com/vim/vim-win32-installer/releases/download/v${{matrix.vim_version}}/gvim_${{matrix.vim_version}}_${{matrix.vim_arch}}.zip -OutFile vim.zip
50       - name: Extract vim
51         shell: PowerShell
52         run: Expand-Archive -Path vim.zip -DestinationPath $env:USERPROFILE
53       - name: Cache gopls
54         id: cache-gopls
55         uses: actions/cache@v4
56         with:
57           path: bin/gopls
58           key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
59       - name: Install Go for gopls
60         if: steps.cache-gopls.outputs.cache-hit != 'true'
61         uses: actions/setup-go@v5
62         with:
63           go-version: ${{ env.VIM_LSP_GO_VERSION }}
64       - name: Install gopls
65         if: steps.cache-gopls.outputs.cache-hit != 'true'
66         shell: bash
67         run: |
68           go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
69           gopls version
70           mkdir bin
71           mv "$(which gopls)" ./bin/
72         env:
73           GO111MODULE: 'on'
74       - name: Download test runner
75         uses: actions/checkout@v4
76         with:
77           repository: thinca/vim-themis
78           path: ./vim-themis
79           ref: v1.5.5
80       - name: Run tests
81         shell: cmd
82         run: |
83           SET PATH=%USERPROFILE%\vim\${{matrix.vim_ver_path}};%PATH%;
84           SET PATH=.\vim-themis\bin;%PATH%;
85           SET PATH=.\bin;%PATH%;
86           vim --version
87           themis