mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
ci: introduce platform-independent environment variable NVIM
This commit is contained in:
parent
4d552d9fda
commit
e18e518751
1 changed files with 9 additions and 5 deletions
|
|
@ -14,6 +14,10 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_compilation_unix_like:
|
check_compilation_unix_like:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -48,6 +52,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.cc }}
|
CC: ${{ matrix.cc }}
|
||||||
|
NVIM: ${{ matrix.os == 'windows-2022' && 'Neovim\\bin\\nvim.exe' || 'nvim' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
@ -72,17 +77,16 @@ jobs:
|
||||||
- name: Compile parsers Unix like
|
- name: Compile parsers Unix like
|
||||||
if: matrix.os != 'windows-2022'
|
if: matrix.os != 'windows-2022'
|
||||||
run: |
|
run: |
|
||||||
nvim --headless -c "TSInstallSync all" -c "q"
|
$NVIM --headless -c "TSInstallSync all" -c "q"
|
||||||
|
|
||||||
- name: Compile parsers Windows
|
- name: Compile parsers Windows
|
||||||
if: matrix.os == 'windows-2022'
|
if: matrix.os == 'windows-2022'
|
||||||
run: |
|
run: |
|
||||||
Neovim\\bin\\nvim.exe --headless -c "lua require'nvim-treesitter.install'.prefer_git=false" -c "TSInstallSync all" -c "q"
|
$NVIM --headless -c "lua require'nvim-treesitter.install'.prefer_git=false" -c "TSInstallSync all" -c "q"
|
||||||
|
|
||||||
- name: Post compile Windows
|
- name: Post compile Windows
|
||||||
if: matrix.os == 'windows-2022'
|
if: matrix.os == 'windows-2022'
|
||||||
run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser
|
run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# NOTE: this is a temporary workaround to skip swift tests on ubuntu
|
# NOTE: this is a temporary workaround to skip swift tests on ubuntu
|
||||||
# stable and should be removed once neovim 0.7 is released.
|
# stable and should be removed once neovim 0.7 is released.
|
||||||
|
|
@ -93,8 +97,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SKIP_SWIFT_CHECK: ${{ env.SKIP_SWIFT_CHECK }}
|
SKIP_SWIFT_CHECK: ${{ env.SKIP_SWIFT_CHECK }}
|
||||||
if: matrix.os != 'windows-2022'
|
if: matrix.os != 'windows-2022'
|
||||||
run: nvim --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
run: $NVIM --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
||||||
|
|
||||||
- name: Check query files (Windows)
|
- name: Check query files (Windows)
|
||||||
if: matrix.os == 'windows-2022'
|
if: matrix.os == 'windows-2022'
|
||||||
run: Neovim\\bin\\nvim.exe --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
run: $NVIM --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue