diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index b21337bb1e..aada365934 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -97,7 +97,7 @@ jobs: ./$REPO_NAME/Telegram/build/prepare/mac.sh skip-release silent - name: Free up some disk space. - run: find Libraries -iwholename "*.dir/*" -delete + run: find Libraries '(' '(' ! '(' -name '*.a' -o -name '*.h' -o -name '*.hpp' -o -name '*.inc' -o -name '*.cmake' -o -path '*/include/*' -o -path '*/objects-*' -o -perm +111 ')' -type f ')' -o -empty ')' -delete - name: Telegram Desktop build. if: env.ONLY_CACHE == 'false'