mirror of
https://github.com/neovim/neovim.git
synced 2026-01-25 22:51:14 +10:00
If one uses .deps when DEPS_BUILD_DIR is defined in another location it leads to very surprising behaviors, as it looks for libraries in other places other than .deps.
23 lines
832 B
YAML
23 lines
832 B
YAML
name: 'Cache'
|
|
description: "This action caches neovim dependencies"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- run: echo "CACHE_KEY=${{ github.job }}" >> $GITHUB_ENV
|
|
shell: bash
|
|
|
|
- if: ${{ matrix }}
|
|
run: echo "CACHE_KEY=$CACHE_KEY-${{ join(matrix.*, '-') }}" >> $GITHUB_ENV
|
|
shell: bash
|
|
|
|
# Avoid using '**/CMakeLists.txt' (or any pattern starting with '**/') even
|
|
# if it makes the expression below simpler. hashFiles() has a timer that
|
|
# will fail the job if it times out, which can happen if there are too many
|
|
# files to search through.
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: .deps
|
|
key: ${{ env.CACHE_KEY }}-${{ hashFiles('cmake**', 'ci/**',
|
|
'.github/workflows/test.yml', 'CMakeLists.txt',
|
|
'runtime/CMakeLists.txt', 'src/nvim/**/CMakeLists.txt') }}
|