Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 22 additions & 16 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,51 @@
name: Generate docs
on: push
# @conni2461 telescope.nvim fix fce74f509dccac97b976bc5cdf0c8fee2e1d633b
on:
push:
branches-ignore:
- master
jobs:
build-sources:
name: Generate docs
runs-on: ubuntu-20.04
if: github.ref != 'master'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
steps:
- uses: actions/checkout@v2
- run: date +%F > todays-date
- name: Restore cache for today's nightly.
uses: actions/cache@v2
with:
path: build
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
path: _neovim
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}

- name: Prepare
run: |
test -d build || {
mkdir -p build
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod +x nvim.appimage
mv nvim.appimage ./build/nvim
test -d _neovim || {
mkdir -p _neovim
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
}
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
git clone --depth 1 https://github.com/tjdevries/tree-sitter-lua ~/.local/share/nvim/site/pack/vendor/start/tree-sitter-lua
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start

- name: Build parser
run: |
# We have to build the parser every single time to keep up with parser changes
cd ~/.local/share/nvim/site/pack/vendor/start/tree-sitter-lua
mkdir -p build parser
cc -o ./build/parser.so -I./src src/parser.c src/scanner.cc -shared -Os -lstdc++ -fPIC
ln -s ../build/parser.so parser/lua.so
make dist
cd -

- name: Generating docs
run: |
export PATH="${PWD}/build/:${PATH}"
export PATH="${PWD}/_neovim/bin:${PATH}"
export VIM="${PWD}/_neovim/share/nvim/runtime"
nvim --version
make gen_nvimhelp

# inspired by nvim-lspconfigs
- name: Update documentation
env:
Expand Down
45 changes: 21 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Create Release
on:
push:
tags: ["v*"]
tags: "v*"

jobs:
release:
if: github.event.base_ref == 'refs/heads/master' # not sure, maybe not
if: github.event.base_ref == 'refs/heads/master'
runs-on: ubuntu-20.04
container:
image: golang:1.16
Expand All @@ -20,39 +20,33 @@ jobs:
name: Restore cache for today's nightly.
uses: actions/cache@v2
with:
path: build
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
path: _neovim
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
-
name: Show Tag
id: tag
run: echo ::set-output name=TAG::${GITHUB_REF##*/}
-
name: Install required utils
name: Setup Git-Chglog and sudo
run: |
apt-get update -y
apt-get install sudo unzip build-essential libreadline-dev -y
go get github.com/git-chglog/git-chglog/cmd/git-chglog
apt-get update -y lua sudo unzip
apt-get -y install build-essential libreadline-dev
wget https://luarocks.org/releases/luarocks-3.7.0.tar.gz
wget https://luarocks.org/releases/luarocks-3.3.1.tar.gz
tar zxpf luarocks-3.3.1.tar.gz
cd luarocks-3.3.1
./configure --with-lua-include=/usr/local/include
make; make install
cd -
echo $(luarocks --version)
-
name: Setup Lua
uses: leafo/gh-actions-lua@v8.0.0
-
name: Setup Luarocks
uses: leafo/gh-actions-luarocks@v4
-
name: Setup Environment
run: |
test -d build || {
mkdir -p build
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod +x nvim.appimage
./nvim.appimage --appimage-extract
mv ./squashfs-root/usr/bin/nvim ./build/nvim
test -d _neovim || {
mkdir -p _neovim
curl -sL https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
}
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim \
~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
-
name: Generate changelog
Expand All @@ -68,8 +62,11 @@ jobs:
name: Generate Luarocks
run: |
export GTAG=${{ steps.tag.outputs.TAG }}
export PATH="${PWD}/build/:${PATH}"
export PATH="${PWD}/_neovim/bin:${PATH}"
export VIM="${PWD}/_neovim/share/nvim/runtime"
nvim --version
make gen_luarock
ls
-
name: Update version in files
run: |
Expand Down
Loading