]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp/.github/workflows/linux_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 'a39f715c13be3352193ffd9c5b7536b8786eff64' as '.vim/bundle/vim-lsp'
[etc/vim.git] / .vim / bundle / vim-lsp / .github / workflows / linux_vim.yml
1 name: linux_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: [ubuntu-latest]
22         name: [vim-v90-x64, vim-v82-x64, vim-v81-x64]
23         include:
24           - name: vim-v90-x64
25             os: ubuntu-latest
26             vim_version: 9.0.0250
27             glibc_version: 2.15
28           - name: vim-v82-x64
29             os: ubuntu-latest
30             vim_version: 8.2.0813
31             glibc_version: 2.15
32           - name: vim-v81-x64
33             os: ubuntu-latest
34             vim_version: 8.1.2414
35             glibc_version: 2.15
36     runs-on: ${{matrix.os}}
37     steps:
38       - name: Install dependencies
39         shell: bash
40         run: |
41           # https://github.com/Zettlr/Zettlr/issues/3517
42           sudo apt-get install libfuse2
43       - uses: actions/checkout@v4
44       - name: Download vim
45         shell: bash
46         run: |
47           mkdir -p ~/vim/bin
48           curl -L https://github.com/vim/vim-appimage/releases/download/v${{matrix.vim_version}}/GVim-v${{matrix.vim_version}}.glibc${{matrix.glibc_version}}-x86_64.AppImage -o ~/vim/bin/vim
49           chmod u+x ~/vim/bin/vim
50       - name: Cache gopls
51         id: cache-gopls
52         uses: actions/cache@v4
53         with:
54           path: bin/gopls
55           key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
56       - name: Install Go for gopls
57         if: steps.cache-gopls.outputs.cache-hit != 'true'
58         uses: actions/setup-go@v5
59         with:
60           go-version: ${{ env.VIM_LSP_GO_VERSION }}
61       - name: Install gopls
62         if: steps.cache-gopls.outputs.cache-hit != 'true'
63         shell: bash
64         run: |
65           go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
66           gopls version
67           mkdir bin
68           mv "$(which gopls)" ./bin/
69         env:
70           GO111MODULE: 'on'
71       - name: Download test runner
72         uses: actions/checkout@v4
73         with:
74           repository: thinca/vim-themis
75           path: ./vim-themis
76           ref: v1.5.5
77       - name: Run tests
78         shell: bash
79         run: |
80           export PATH=~/vim/bin:$PATH
81           export PATH=./vim-themis/bin:$PATH
82           export PATH=./bin:$PATH
83           export THEMIS_VIM=vim
84           # https://github.com/project-slippi/Ishiiruka/issues/323
85           # It was needed to detect the actual path of `libgmodule` via `ldconfig -p | grep libg`.
86           LD_PRELOAD=/lib/x86_64-linux-gnu/libgmodule-2.0.so vim --version
87           LD_PRELOAD=/lib/x86_64-linux-gnu/libgmodule-2.0.so themis
88