File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 1010 luacheck :
1111 name : Check Query Files
1212 runs-on : ubuntu-latest
13+ env :
14+ NVIM_TAG : stable
15+ APPIMAGE : nvim-linux-x86_64.appimage
1316 steps :
1417 - uses : actions/checkout@v3
1518 - uses : actions/setup-node@v3
@@ -20,19 +23,20 @@ jobs:
2023 - name : Prepare
2124 env :
2225 NVIM_TAG : stable
26+ APPIMAGE : nvim-linux-x86_64.appimage
2327 run : |
2428 sudo apt-get update && sudo apt-get install libfuse2
2529 sudo add-apt-repository universe
26- wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim.appimage
27- chmod u+x nvim.appimage
30+ wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/${APPIMAGE}
31+ chmod u+x ${APPIMAGE}
2832 mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
2933 ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
3034 mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
3135 cd ~/.local/share/nvim/site/pack/nvim-treesitter/start
3236 git clone https://github.com/nvim-treesitter/nvim-treesitter.git
3337
3438 - name : Compile parsers
35- run : ./nvim.appimage --headless -c "TSInstallSync all" -c "q"
39+ run : ./${APPIMAGE} --headless -c "TSInstallSync all" -c "q"
3640
3741 - name : Check query files
38- run : ./nvim.appimage --headless -c "luafile ./scripts/check-queries.lua" -c "q"
42+ run : ./${APPIMAGE} --headless -c "luafile ./scripts/check-queries.lua" -c "q"
Original file line number Diff line number Diff line change 99 update-readme :
1010 name : Update README.md
1111 runs-on : ubuntu-latest
12+ env :
13+ APPIMAGE : nvim-linux-x86_64.appimage
1214 steps :
1315 - uses : actions/checkout@v3
1416 - uses : actions/setup-node@v3
@@ -20,23 +22,23 @@ jobs:
2022 run : |
2123 sudo apt-get update && sudo apt-get install libfuse2
2224 sudo add-apt-repository universe
23- wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
24- chmod u+x nvim.appimage
25+ wget https://github.com/neovim/neovim/releases/download/nightly/${APPIMAGE}
26+ chmod u+x ${APPIMAGE}
2527 mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
2628 ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
2729 mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
2830 cd ~/.local/share/nvim/site/pack/nvim-treesitter/start
2931 git clone https://github.com/nvim-treesitter/nvim-treesitter.git
3032
3133 - name : Compile parsers
32- run : ./nvim.appimage --headless -c "TSInstallSync all" -c "q"
34+ run : ./${APPIMAGE} --headless -c "TSInstallSync all" -c "q"
3335
3436 # inspired by nvim-lspconfigs
3537 - name : Check README
3638 run : |
3739 git config user.email "actions@github"
3840 git config user.name "Github Actions"
39- ./nvim.appimage --headless -c "luafile ./scripts/update-readme.lua" -c "q" || echo "Needs update"
41+ ./${APPIMAGE} --headless -c "luafile ./scripts/update-readme.lua" -c "q" || echo "Needs update"
4042 git add README.md
4143 git commit -m "docs: update queries in README" || echo 'No commit necessary!'
4244 git clean -xf
Original file line number Diff line number Diff line change 1- wget " https://github.com/neovim/neovim/releases/download/${NVIM_TAG} /nvim-linux64 .tar.gz"
2- tar -zxf nvim-linux64 .tar.gz
3- sudo ln -s " $( pwd) /nvim-linux64 /bin/nvim" /usr/local/bin
4- rm -rf " $( pwd) /nvim-linux64 /lib/nvim/parser"
1+ wget " https://github.com/neovim/neovim/releases/download/${NVIM_TAG} /nvim-linux-x86_64 .tar.gz"
2+ tar -zxf nvim-linux-x86_64 .tar.gz
3+ sudo ln -s " $( pwd) /nvim-linux-x86_64 /bin/nvim" /usr/local/bin
4+ rm -rf " $( pwd) /nvim-linux-x86_64 /lib/nvim/parser"
55mkdir -p ~ /.local/share/nvim/site/pack/ci/opt
66ln -s " $( pwd) " ~ /.local/share/nvim/site/pack/ci/opt
You can’t perform that action at this time.
0 commit comments