diff --git a/.github/workflows/check-query-files-and-compilation.yml b/.github/workflows/check-query-files-and-compilation.yml index d89b09fa5..df7e54477 100644 --- a/.github/workflows/check-query-files-and-compilation.yml +++ b/.github/workflows/check-query-files-and-compilation.yml @@ -7,14 +7,14 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, windows-2022, macos-latest] cc: [ gcc, clang ] exclude: - os: macos-latest cc: gcc include: - - os: windows-latest + - os: windows-2022 cc: cl - os: macos-latest @@ -37,17 +37,17 @@ jobs: bash ./scripts/ci-install-${{ matrix.os }}.sh - name: Compile parsers Unix like - if: matrix.os != 'windows-latest' + if: matrix.os != 'windows-2022' run: | nvim --headless -c "TSInstallSync all" -c "q" - name: Compile parsers Windows - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-2022' run: | Neovim\\bin\\nvim.exe --headless -c "TSInstallSync all" -c "q" - name: Post compile Windows - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-2022' run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser shell: bash @@ -57,13 +57,13 @@ jobs: path: parser/* - name: Check query files (Unix) - if: matrix.os != 'windows-latest' + if: matrix.os != 'windows-2022' env: ALLOWED_INSTALLATION_FAILURES: haskell run: nvim --headless -c "luafile ./scripts/check-queries.lua" -c "q" - name: Check query files (Windows) - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-2022' env: ALLOWED_INSTALLATION_FAILURES: haskell run: Neovim\\bin\\nvim.exe --headless -c "luafile ./scripts/check-queries.lua" -c "q" diff --git a/scripts/ci-install-windows-latest.sh b/scripts/ci-install-windows-2022.sh similarity index 100% rename from scripts/ci-install-windows-latest.sh rename to scripts/ci-install-windows-2022.sh