aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-02-10 15:01:53 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-02-10 15:25:01 +0100
commit143a342bd860d6e3d584edeb447fb49febab3355 (patch)
tree9adeca67b11c3c2484be4ecce483f60364f6cf78
parentchore(bash): update parser and highlights (diff)
downloadnvim-treesitter-143a342bd860d6e3d584edeb447fb49febab3355.tar
nvim-treesitter-143a342bd860d6e3d584edeb447fb49febab3355.tar.gz
nvim-treesitter-143a342bd860d6e3d584edeb447fb49febab3355.tar.bz2
nvim-treesitter-143a342bd860d6e3d584edeb447fb49febab3355.tar.lz
nvim-treesitter-143a342bd860d6e3d584edeb447fb49febab3355.tar.xz
nvim-treesitter-143a342bd860d6e3d584edeb447fb49febab3355.tar.zst
nvim-treesitter-143a342bd860d6e3d584edeb447fb49febab3355.zip
ci: use `windows-latest` over `windows-2022`
It's convenient to not need to manually update the runner version.
-rw-r--r--.github/workflows/test-queries.yml12
-rw-r--r--.github/workflows/tests.yml2
2 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/test-queries.yml b/.github/workflows/test-queries.yml
index d5a3894e4..0d713c836 100644
--- a/.github/workflows/test-queries.yml
+++ b/.github/workflows/test-queries.yml
@@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, windows-2022, macos-14]
+ os: [ubuntu-latest, windows-latest, macos-14]
cc: [gcc, clang]
nvim_tag: [stable]
exclude:
@@ -34,12 +34,12 @@ jobs:
cc: gcc
nvim_tag: stable
- - os: windows-2022
+ - os: windows-latest
cc: clang
nvim_tag: stable
include:
- - os: windows-2022
+ - os: windows-latest
cc: cl
nvim_tag: stable
@@ -51,8 +51,8 @@ jobs:
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
- NVIM: ${{ matrix.os == 'windows-2022' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
- ALLOWED_INSTALLATION_FAILURES: ${{ matrix.os == 'windows-2022' && 'rnoweb' }}
+ NVIM: ${{ runner.os == 'Windows' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
+ ALLOWED_INSTALLATION_FAILURES: ${{ runner.os == 'Windows' && 'rnoweb' }}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
@@ -80,7 +80,7 @@ jobs:
run: $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'
+ if: runner.os == 'Windows'
run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser
- name: Check query files
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 863f8d0a4..8c4043417 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -56,7 +56,7 @@ jobs:
key: ${{ matrix.os }}-${{ matrix.cc }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua', './lua/nvim-treesitter/shell_selectors.lua') }}
- name: Compile parsers Unix like
- if: ${{ matrix.os != 'windows-latest' && steps.parsers-cache.outputs.cache-hit != 'true' }}
+ if: ${{ runner.os != 'Windows' && steps.parsers-cache.outputs.cache-hit != 'true' }}
run: |
nvim --headless -c "TSInstallSync all" -c "q"