diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-21 19:25:47 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-21 22:06:17 +0100 |
| commit | 8b0398c5e32483810e9975f4af5e447f4d25acdb (patch) | |
| tree | 32267c54f9efedbbaac3bf3d90f5fa784f3ce429 /.github/workflows | |
| parent | ci: add cache for Rust dependency (diff) | |
| download | nvim-treesitter-8b0398c5e32483810e9975f4af5e447f4d25acdb.tar nvim-treesitter-8b0398c5e32483810e9975f4af5e447f4d25acdb.tar.gz nvim-treesitter-8b0398c5e32483810e9975f4af5e447f4d25acdb.tar.bz2 nvim-treesitter-8b0398c5e32483810e9975f4af5e447f4d25acdb.tar.lz nvim-treesitter-8b0398c5e32483810e9975f4af5e447f4d25acdb.tar.xz nvim-treesitter-8b0398c5e32483810e9975f4af5e447f4d25acdb.tar.zst nvim-treesitter-8b0398c5e32483810e9975f4af5e447f4d25acdb.zip | |
ci: cache using ccache
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/check-query-files-and-compilation.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/tests.yml | 10 |
2 files changed, 17 insertions, 2 deletions
diff --git a/.github/workflows/check-query-files-and-compilation.yml b/.github/workflows/check-query-files-and-compilation.yml index 003bf5c10..3d82eba74 100644 --- a/.github/workflows/check-query-files-and-compilation.yml +++ b/.github/workflows/check-query-files-and-compilation.yml @@ -61,11 +61,18 @@ jobs: 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') }} + key: ${{ matrix.os }}-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' + uses: hendrikmuhs/ccache-action@v1 + with: + key: ${{ matrix.os }}-${{ matrix.cc }} - name: Compile parsers Unix like if: matrix.os != 'windows-2022' run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" nvim --headless -c "TSInstallSync all" -c "q" - name: Compile parsers Windows diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9f58f436f..e2e6e26df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,10 +56,18 @@ jobs: 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') }} + key: ${{ matrix.os }}-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' + uses: hendrikmuhs/ccache-action@v1 + with: + key: ${{ matrix.os }}-${{ matrix.cc }} + - name: Compile parsers Unix like if: ${{ matrix.os != 'windows-latest' && steps.parsers-cache.outputs.cache-hit != 'true' }} run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" nvim --headless -c "TSInstallSync all" -c "q" - name: Tests |
