mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 12:06:59 +00:00
[macOS] Enable indexing for macOS-14 and macOS-15 (#11930)
This commit is contained in:
@@ -56,18 +56,11 @@ yarn cache clean
|
|||||||
# Clean up temporary directories
|
# Clean up temporary directories
|
||||||
sudo rm -rf ~/utils /tmp/*
|
sudo rm -rf ~/utils /tmp/*
|
||||||
|
|
||||||
if is_Ventura; then
|
# Erase all indexes and wait until the rebuilding process ends,
|
||||||
# Erase all indexes and wait until the rebuilding process ends,
|
# for now there is no way to get status of indexing process, it takes around 5 minutes to accomplish
|
||||||
# for now there is no way to get status of indexing process, it takes around 3 minutes to accomplish
|
sudo mdutil -E /
|
||||||
sudo mdutil -E /
|
sudo log stream | grep -q -E 'mds.*Released.*BackgroundTask' || true
|
||||||
sudo log stream | grep -q -E 'mds.*Released.*BackgroundTask' || true
|
echo "Indexing completed"
|
||||||
echo "Indexing completed"
|
|
||||||
else
|
|
||||||
# Disable spotlight and MDS
|
|
||||||
sudo mdutil -a -i off
|
|
||||||
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
|
|
||||||
sudo mdutil -a -s | grep "Indexing enabled." && echo "Indexing is still enabled" && exit 1 || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# delete symlink for tests running
|
# delete symlink for tests running
|
||||||
sudo rm -f /usr/local/bin/invoke_tests
|
sudo rm -f /usr/local/bin/invoke_tests
|
||||||
|
|||||||
Reference in New Issue
Block a user