From 5cfdd36237c9c603da9a03685f7f1569faeca65a Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 15 Nov 2025 23:12:57 +0100 Subject: [PATCH] Fix SPM cache clearing in macOS notarized build workflow Expands cache clearing to include DerivedData and .build directories to prevent corrupted artifact issues during dependency resolution. Renames workflow file and updates job title to include macOS and Xcode versions for clarity. --- ...zed.yml => build-mac-notarized-macos15-xcode16.4.yml} | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) rename .github/workflows/{build-mac-notarized.yml => build-mac-notarized-macos15-xcode16.4.yml} (89%) diff --git a/.github/workflows/build-mac-notarized.yml b/.github/workflows/build-mac-notarized-macos15-xcode16.4.yml similarity index 89% rename from .github/workflows/build-mac-notarized.yml rename to .github/workflows/build-mac-notarized-macos15-xcode16.4.yml index 74a80001..4a27da1c 100644 --- a/.github/workflows/build-mac-notarized.yml +++ b/.github/workflows/build-mac-notarized-macos15-xcode16.4.yml @@ -1,4 +1,4 @@ -name: Build and notarize macOS app +name: Build and notarize macOS app (macOS 15, Xcode 16.4) on: workflow_dispatch: @@ -20,7 +20,7 @@ env: jobs: mac_notarized: - name: Build and notarize macOS app + name: Build and notarize macOS app (macOS 15, Xcode 16.4) runs-on: macos-15 steps: - uses: actions/checkout@v4 @@ -37,7 +37,10 @@ jobs: with: xcode-version: '16.4' - name: Clear SPM cache - run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts + run: | + rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts + rm -rf ~/Library/Developer/Xcode/DerivedData + rm -rf .build - uses: maierj/fastlane-action@v3.0.0 with: lane: mac build_and_notarize