diff options
| author | Dundar Göc <gocdundar@gmail.com> | 2022-02-05 12:27:18 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 18:26:06 +0100 |
| commit | e18e51875122e37b341d2063165e41adb03b1eca (patch) | |
| tree | c74c011c192c67993ab95224ca09c264adcd93de /.github | |
| parent | injections(yaml): inject at command list for Gitlab script (diff) | |
| download | nvim-treesitter-e18e51875122e37b341d2063165e41adb03b1eca.tar nvim-treesitter-e18e51875122e37b341d2063165e41adb03b1eca.tar.gz nvim-treesitter-e18e51875122e37b341d2063165e41adb03b1eca.tar.bz2 nvim-treesitter-e18e51875122e37b341d2063165e41adb03b1eca.tar.lz nvim-treesitter-e18e51875122e37b341d2063165e41adb03b1eca.tar.xz nvim-treesitter-e18e51875122e37b341d2063165e41adb03b1eca.tar.zst nvim-treesitter-e18e51875122e37b341d2063165e41adb03b1eca.zip | |
ci: introduce platform-independent environment variable NVIM
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/check-query-files-and-compilation.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/check-query-files-and-compilation.yml b/.github/workflows/check-query-files-and-compilation.yml index 259f7d2ab..1ea3ac08f 100644 --- a/.github/workflows/check-query-files-and-compilation.yml +++ b/.github/workflows/check-query-files-and-compilation.yml @@ -14,6 +14,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true +defaults: + run: + shell: bash + jobs: check_compilation_unix_like: strategy: @@ -48,6 +52,7 @@ jobs: runs-on: ${{ matrix.os }} env: CC: ${{ matrix.cc }} + NVIM: ${{ matrix.os == 'windows-2022' && 'Neovim\\bin\\nvim.exe' || 'nvim' }} steps: - uses: actions/checkout@v2 - uses: ilammy/msvc-dev-cmd@v1 @@ -72,17 +77,16 @@ jobs: - name: Compile parsers Unix like if: matrix.os != 'windows-2022' run: | - nvim --headless -c "TSInstallSync all" -c "q" + $NVIM --headless -c "TSInstallSync all" -c "q" - name: Compile parsers Windows if: matrix.os == 'windows-2022' 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 if: matrix.os == 'windows-2022' 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 # stable and should be removed once neovim 0.7 is released. @@ -93,8 +97,8 @@ jobs: env: SKIP_SWIFT_CHECK: ${{ env.SKIP_SWIFT_CHECK }} 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) 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" |
