mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
ci: add shebangs to scripts
This commit is contained in:
parent
4613314b1f
commit
f8bc6c69d7
6 changed files with 17 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
-- Execute as `nvim --headless -c "luafile ./scripts/check-queries.lua"`
|
||||
#!/usr/bin/env -S nvim -l
|
||||
|
||||
-- Equivalent to print(), but this will ensure consistent output regardless of
|
||||
-- operating system.
|
||||
|
|
11
scripts/ci-install-macos-latest.sh
Normal file → Executable file
11
scripts/ci-install-macos-latest.sh
Normal file → Executable file
|
@ -1,6 +1,7 @@
|
|||
curl -L https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-macos.tar.gz | tar -xz
|
||||
sudo ln -s $(pwd)/nvim-macos/bin/nvim /usr/local/bin
|
||||
rm -rf $(pwd)/nvim-macos/lib/nvim/parser
|
||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
#!/usr/bin/env bash
|
||||
|
||||
curl -L https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-macos.tar.gz | tar -xz
|
||||
sudo ln -s "$PWD"/nvim-macos/bin/nvim /usr/local/bin
|
||||
rm -rf "$PWD"/nvim-macos/lib/nvim/parser
|
||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
ln -s "$PWD" ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
|
|
8
scripts/ci-install-ubuntu-latest.sh
Normal file → Executable file
8
scripts/ci-install-ubuntu-latest.sh
Normal file → Executable file
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-linux64.tar.gz
|
||||
tar -zxf nvim-linux64.tar.gz
|
||||
sudo ln -s $(pwd)/nvim-linux64/bin/nvim /usr/local/bin
|
||||
rm -rf $(pwd)/nvim-linux64/lib/nvim/parser
|
||||
sudo ln -s "$PWD"/nvim-linux64/bin/nvim /usr/local/bin
|
||||
rm -rf "$PWD"/nvim-linux64/lib/nvim/parser
|
||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
ln -s "$PWD" ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
|
|
4
scripts/ci-install-windows-2022.sh
Normal file → Executable file
4
scripts/ci-install-windows-2022.sh
Normal file → Executable file
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl -L https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-win64.zip -o nvim-win64.zip
|
||||
unzip nvim-win64
|
||||
mkdir -p ~/AppData/Local/nvim/pack/nvim-treesitter/start
|
||||
mkdir -p ~/AppData/Local/nvim-data
|
||||
cp -r $(pwd) ~/AppData/Local/nvim/pack/nvim-treesitter/start
|
||||
cp -r "$PWD" ~/AppData/Local/nvim/pack/nvim-treesitter/start
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- Execute as `nvim --headless -c "luafile ./scripts/update-readme.lua"`
|
||||
#!/usr/bin/env -S nvim -l
|
||||
|
||||
---@class Parser
|
||||
---@field name string
|
||||
|
|
2
scripts/write-lockfile.lua
Normal file → Executable file
2
scripts/write-lockfile.lua
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
-- Execute as `nvim --headless -c "luafile ./scripts/write-lockfile.lua"`
|
||||
#!/usr/bin/env -S nvim -l
|
||||
|
||||
---@type string|any[]
|
||||
local skip_langs = vim.fn.getenv "SKIP_LOCKFILE_UPDATE_FOR_LANGS"
|
||||
|
|
Loading…
Reference in a new issue