mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ci: cache using ccache
This commit is contained in:
parent
ff97dfac7f
commit
8b0398c5e3
2 changed files with 17 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue