macOS: fix GH actions cache (#29399)

Add lz4 and xz to dep cache exceptions
pull/29407/head
Kacper Rączy 2 years ago committed by GitHub
parent fb235238ad
commit ae649ec68d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .github/workflows/selfdrive_tests.yaml

@ -173,8 +173,9 @@ jobs:
if: steps.dependency-cache.outputs.cache-hit != 'true'
run: |
new_cellar=$(brew list --formula -1)
exceptions="zstd lz4 xz" # caching step needs zstd
comm -12 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | while read pkg; do
if [[ $pkg != "zstd" ]]; then # caching step needs zstd
if [[ " $exceptions " != *" $pkg "* ]]; then
rm -rf "$(brew --cellar)/$pkg"
fi
done

Loading…
Cancel
Save