From 90e524a4ed86d75ebaac1054c359442b08d2171e Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Wed, 23 Sep 2026 15:37:35 -0400 Subject: [PATCH] ci: cap the Xcode compilation cache and harden the native path filter --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a9688a..ef0cbee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,10 +28,10 @@ jobs: echo android=true >> "$GITHUB_OUTPUT" exit 0 fi - git diff --name-only --no-renames HEAD^1 HEAD > "$RUNNER_TEMP/changed" + git -c core.quotePath=false diff --name-only --no-renames HEAD^1 HEAD > "$RUNNER_TEMP/changed" shared='^(src/|example/src/|example/[^/]+$|package\.json$|pnpm-lock\.yaml$|pnpm-workspace\.yaml$|\.nvmrc$|\.github/workflows/ci\.yml$|\.github/actions/)' matches() { grep -qE "$shared|$1" "$RUNNER_TEMP/changed" && echo true || echo false; } - echo "ios=$(matches '^(ios/|example/ios/|[^/]+\.podspec$)')" >> "$GITHUB_OUTPUT" + echo "ios=$(matches '^(ios/|example/ios/|example/\.bundle/|[^/]+\.podspec$)')" >> "$GITHUB_OUTPUT" echo "android=$(matches '^(android/|example/android/)')" >> "$GITHUB_OUTPUT" check: runs-on: ubuntu-latest @@ -96,5 +96,5 @@ jobs: -scheme ReservedRegionsExample -configuration Debug -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build CODE_SIGNING_ALLOWED=NO - COMPILATION_CACHE_ENABLE_CACHING=YES build + COMPILATION_CACHE_ENABLE_CACHING=YES COMPILATION_CACHE_LIMIT_SIZE=1G build working-directory: example