mirror of
https://github.com/neovim/nvim-lspconfig
synced 2024-09-16 14:24:07 +02:00
chore: use luarocks-tag-release workflow
This commit is contained in:
parent
902d6aa314
commit
64bee38a97
6 changed files with 14 additions and 39 deletions
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
|
@ -8,15 +8,15 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: leafo/gh-actions-lua@v9
|
- name: LuaRocks Upload
|
||||||
with:
|
uses: nvim-neorocks/luarocks-tag-release@v1.0.1
|
||||||
luaVersion: "luajit-2.1.0-beta3"
|
env:
|
||||||
- uses: leafo/gh-actions-luarocks@v4
|
|
||||||
- name: Install dkjson
|
|
||||||
run: luarocks install dkjson
|
|
||||||
- name: Luarocks Upload
|
|
||||||
env:
|
|
||||||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
||||||
run: make luarocks_upload
|
with:
|
||||||
- name: Install release
|
summary: "A collection of common configurations for Neovim's built-in language server client."
|
||||||
run: make test_luarocks_install
|
detailed_description: |
|
||||||
|
This plugin allows for declaratively configuring,
|
||||||
|
launching, and initializing language servers you have installed on your system.
|
||||||
|
Language server configurations are community-maintained.
|
||||||
|
copy_directories: |
|
||||||
|
doc
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -10,9 +10,3 @@ lint:
|
||||||
stylua --check .
|
stylua --check .
|
||||||
|
|
||||||
.PHONY: test lint
|
.PHONY: test lint
|
||||||
|
|
||||||
luarocks_upload:
|
|
||||||
bash ./scripts/luarocks-upload.sh
|
|
||||||
|
|
||||||
test_luarocks_install:
|
|
||||||
bash ./scripts/test-luarocks-install.sh
|
|
||||||
|
|
|
@ -10,6 +10,8 @@ See also `:help lsp-config`.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
[![LuaRocks](https://img.shields.io/luarocks/v/teto/nvim-lspconfig?logo=lua&color=purple)](https://luarocks.org/modules/teto/nvim-lspconfig)
|
||||||
|
|
||||||
* Requires neovim version 0.7 above. Update Nvim and nvim-lspconfig before reporting an issue.
|
* Requires neovim version 0.7 above. Update Nvim and nvim-lspconfig before reporting an issue.
|
||||||
* Install nvim-lspconfig like any other Vim plugin, e.g. with [packer.nvim](https://github.com/wbthomason/packer.nvim):
|
* Install nvim-lspconfig like any other Vim plugin, e.g. with [packer.nvim](https://github.com/wbthomason/packer.nvim):
|
||||||
```lua
|
```lua
|
||||||
|
|
|
@ -20,16 +20,9 @@ dependencies = {
|
||||||
}
|
}
|
||||||
|
|
||||||
source = {
|
source = {
|
||||||
url = 'https://github.com/neovim/nvim-lspconfig/archive/v' .. _MODREV .. '.zip',
|
url = 'git://github.com/neovim/nvim-lspconfig',
|
||||||
dir = 'nvim-lspconfig-' .. _MODREV,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if _MODREV == 'scm' then
|
|
||||||
source = {
|
|
||||||
url = 'git://github.com/neovim/nvim-lspconfig',
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
build = {
|
build = {
|
||||||
type = 'builtin',
|
type = 'builtin',
|
||||||
copy_directories = {
|
copy_directories = {
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Expects the LUAROCKS_API_KEY secret to be set
|
|
||||||
|
|
||||||
TMP_DIR=$(mktemp -d)
|
|
||||||
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
|
|
||||||
DEST_ROCKSPEC="$TMP_DIR/nvim-lspconfig-$MODREV-1.rockspec"
|
|
||||||
cp "nvim-lspconfig-scm-1.rockspec" "$DEST_ROCKSPEC"
|
|
||||||
sed -i "s/= 'scm'/= '$MODREV'/g" "$DEST_ROCKSPEC"
|
|
||||||
luarocks upload "$DEST_ROCKSPEC" --api-key="$LUAROCKS_API_KEY"
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
|
|
||||||
luarocks install "nvim-lspconfig" "$MODREV"
|
|
Loading…
Reference in a new issue