ci: cache ripgrep (for checkembedded files)

This commit is contained in:
Simon Michael 2024-05-16 09:17:09 -10:00
parent 176a45b12a
commit fbd7b7d3f2

View File

@ -119,9 +119,17 @@ jobs:
&& (grep -qE '^ *;' $$.gitlog || echo "do-all=true" >> $GITHUB_ENV)) \ && (grep -qE '^ *;' $$.gitlog || echo "do-all=true" >> $GITHUB_ENV)) \
|| ( echo "could not identify commit range, continuing CI steps"; echo "do-all=true" >> $GITHUB_ENV ) || ( echo "could not identify commit range, continuing CI steps"; echo "do-all=true" >> $GITHUB_ENV )
- name: Uncache extra tools (ripgrep) in /usr/bin
id: extratools
uses: actions/cache@v4
with:
path: /usr/bin/rg
key: ${{ runner.os }}-extratools
if: env.do-all
- name: Check embedded files - name: Check embedded files
run: | run: |
sudo apt install -y ripgrep if [[ ! -x /usr/bin/rg ]]; then sudo apt install -y ripgrep; fi
tools/checkembeddedfiles tools/checkembeddedfiles
if: env.do-all if: env.do-all