robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
b532180108
master
1name : 'Cache' 2description : "This action caches neovim dependencies" 3runs : 4using : "composite" 5steps : 6- run : echo "CACHE_KEY=${GITHUB_WORKFLOW}" >> $GITHUB_ENV # zizmor: ignore[github-env] 7shell : bash 8 9- run : echo "CACHE_KEY=${GITHUB_JOB}" >> $GITHUB_ENV # zizmor: ignore[github-env] 10shell : bash 11 12- if : ${{ matrix }} 13env : 14MATRIX_JOIN : ${{ join(matrix.*, '-') }} 15run : echo "CACHE_KEY=${CACHE_KEY}-${MATRIX_JOIN}" >> $GITHUB_ENV # zizmor: ignore[github-env] 16shell : bash 17 18- if : ${{ matrix.build }} 19env : 20MATRIX_JOIN : ${{ join(matrix.build.*, '-') }} 21run : echo "CACHE_KEY=${CACHE_KEY}-${MATRIX_JOIN}" >> $GITHUB_ENV # zizmor: ignore[github-env] 22shell : bash 23 24- id : image 25run : echo "version=$ImageVersion" >> $GITHUB_OUTPUT 26shell : bash 27 28# Avoid using '**/CMakeLists.txt' (or any pattern starting with '**/') even 29# if it makes the expression below simpler. hashFiles() has a timer that 30# will fail the job if it times out, which can happen if there are too many 31# files to search through. 32- uses : actions/cache@v6.1.0 33with : 34path : .deps 35key : ${{ env.CACHE_KEY }}-${{ steps.image.outputs.version }}-${{ hashFiles('cmake**', 36'.github/**', 'CMakeLists.txt', 37'runtime/CMakeLists.txt', 'src/nvim/**/CMakeLists.txt') }}