mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04: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
|
-- Equivalent to print(), but this will ensure consistent output regardless of
|
||||||
-- operating system.
|
-- 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
|
#!/usr/bin/env bash
|
||||||
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
|
|
||||||
|
|
||||||
|
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
|
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-linux64.tar.gz
|
||||||
tar -zxf nvim-linux64.tar.gz
|
tar -zxf nvim-linux64.tar.gz
|
||||||
sudo ln -s $(pwd)/nvim-linux64/bin/nvim /usr/local/bin
|
sudo ln -s "$PWD"/nvim-linux64/bin/nvim /usr/local/bin
|
||||||
rm -rf $(pwd)/nvim-linux64/lib/nvim/parser
|
rm -rf "$PWD"/nvim-linux64/lib/nvim/parser
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
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
|
curl -L https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-win64.zip -o nvim-win64.zip
|
||||||
unzip nvim-win64
|
unzip nvim-win64
|
||||||
mkdir -p ~/AppData/Local/nvim/pack/nvim-treesitter/start
|
mkdir -p ~/AppData/Local/nvim/pack/nvim-treesitter/start
|
||||||
mkdir -p ~/AppData/Local/nvim-data
|
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
|
---@class Parser
|
||||||
---@field name string
|
---@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[]
|
---@type string|any[]
|
||||||
local skip_langs = vim.fn.getenv "SKIP_LOCKFILE_UPDATE_FOR_LANGS"
|
local skip_langs = vim.fn.getenv "SKIP_LOCKFILE_UPDATE_FOR_LANGS"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue