From 4096be66e4d65004a52fdae957269dd2d9e35f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20R=C4=85czy?= Date: Mon, 14 Aug 2023 16:13:35 -0700 Subject: [PATCH] macOS: fix GH actions cache (#29399) Add lz4 and xz to dep cache exceptions old-commit-hash: ae649ec68d670cb2d90773906665695807e4dc2e --- .github/workflows/selfdrive_tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 09ff4975e..65e10e61e 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.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