Files
session-ios/Scripts/reset_spm_cache.sh
Morgan Pretty 84ffe44857 Fix confirm push, mock contact generation, reset CI SPM cache
• Added dev setting for mock contact generation
• Added a mechanism to reset the CI SPM cache
• Force unit tests to run on App_Store_Release configuration to ensure optimisations are consistent with release builds
• Only confirm configs as pushed if all parts were pushed
2025-04-28 08:11:47 +10:00

19 lines
708 B
Bash
Executable File

#!/usr/bin/env bash
set -e
green="\e[32;1m"
if echo "${DRONE_COMMIT_MESSAGE}" | grep -q -F "[Reset SPM]"; then
echo "Trigger phrase found in commit message. Clearing SPM caches..."
echo "--> Clearing global SwiftPM caches..."
rm -rf /Users/drone/.swiftpm || echo "Warning: Failed to remove Users/drone/.swiftpm"
rm -rf /Users/drone/Library/org.swift.swiftpm || echo "Warning: Failed to remove Users/drone/Library/org.swift.swiftpm"
rm -rf /Users/drone/Library/Caches/org.swift.swiftpm || echo "Warning: Failed to remove Users/drone/Library/Caches/org.swift.swiftpm"
echo -e "\n${green}SPM caches cleared."
else
echo -e "\n${green}Trigger phrase not found. Skipping SPM cache clearing."
fi