From 77fe45968c060847085dbd89f1d0e1536ce9b79d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 21 Jan 2022 20:25:30 +0100 Subject: ci: fix cache path on Windows --- .github/workflows/check-query-files-and-compilation.yml | 6 ++++-- .github/workflows/tests.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-query-files-and-compilation.yml b/.github/workflows/check-query-files-and-compilation.yml index fb1a8e27..c1f3d0de 100644 --- a/.github/workflows/check-query-files-and-compilation.yml +++ b/.github/workflows/check-query-files-and-compilation.yml @@ -60,8 +60,10 @@ jobs: id: parsers-cache uses: actions/cache@v2 with: - path: ./parser/ - key: ${{ matrix.os }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua', './lua/nvim-treesitter/shell_selectors.lua') }} + path: | + ./parser/ + ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/ + key: ${{ matrix.os }}-${{ matrix.cc }}-${{ matrix.nvim_tag }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua', './lua/nvim-treesitter/shell_selectors.lua') }} - name: ccache if: matrix.os != 'windows-2022' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e2e6e26d..03644bc2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,8 +55,10 @@ jobs: id: parsers-cache uses: actions/cache@v2 with: - path: ./parser/ - key: ${{ matrix.os }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua', './lua/nvim-treesitter/shell_selectors.lua') }} + path: | + ./parser/ + ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/ + key: ${{ matrix.os }}-${{ matrix.cc }}-${{ matrix.nvim_tag }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua', './lua/nvim-treesitter/shell_selectors.lua') }} - name: ccache if: matrix.os != 'windows-2022' -- cgit v1.2.3