mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
ci: use windows-latest over windows-2022
It's convenient to not need to manually update the runner version.
This commit is contained in:
parent
05962ae14a
commit
143a342bd8
2 changed files with 7 additions and 7 deletions
12
.github/workflows/test-queries.yml
vendored
12
.github/workflows/test-queries.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-2022, macos-14]
|
os: [ubuntu-latest, windows-latest, macos-14]
|
||||||
cc: [gcc, clang]
|
cc: [gcc, clang]
|
||||||
nvim_tag: [stable]
|
nvim_tag: [stable]
|
||||||
exclude:
|
exclude:
|
||||||
|
|
@ -34,12 +34,12 @@ jobs:
|
||||||
cc: gcc
|
cc: gcc
|
||||||
nvim_tag: stable
|
nvim_tag: stable
|
||||||
|
|
||||||
- os: windows-2022
|
- os: windows-latest
|
||||||
cc: clang
|
cc: clang
|
||||||
nvim_tag: stable
|
nvim_tag: stable
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- os: windows-2022
|
- os: windows-latest
|
||||||
cc: cl
|
cc: cl
|
||||||
nvim_tag: stable
|
nvim_tag: stable
|
||||||
|
|
||||||
|
|
@ -51,8 +51,8 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.cc }}
|
CC: ${{ matrix.cc }}
|
||||||
NVIM: ${{ matrix.os == 'windows-2022' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
|
NVIM: ${{ runner.os == 'Windows' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
|
||||||
ALLOWED_INSTALLATION_FAILURES: ${{ matrix.os == 'windows-2022' && 'rnoweb' }}
|
ALLOWED_INSTALLATION_FAILURES: ${{ runner.os == 'Windows' && 'rnoweb' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- 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"
|
run: $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: runner.os == 'Windows'
|
||||||
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
|
||||||
|
|
||||||
- name: Check query files
|
- name: Check query files
|
||||||
|
|
|
||||||
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
|
@ -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') }}
|
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
|
- 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: |
|
run: |
|
||||||
nvim --headless -c "TSInstallSync all" -c "q"
|
nvim --headless -c "TSInstallSync all" -c "q"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue