File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,6 +114,18 @@ jobs:
114114 - name : Initialization for ${{ env.tag_name }} ...
115115 run : |
116116 echo ok!
117+ - name : Release some disk spaces for macos build, initialize latest xcode ...
118+ if : startsWith(matrix.os, 'macos')
119+ uses : maxim-lobanov/setup-xcode@v1.6.0
120+ - name : Release some disk spaces for macos build, remove old xcode versions ...
121+ if : startsWith(matrix.os, 'macos')
122+ run : |
123+ echo "Searching for Xcode versions:"
124+ find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1
125+ echo "Removing old Xcode versions..."
126+ find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1 | grep -v ${{ matrix.xcode }} | xargs rm -rf
127+ echo "Available Xcode versions after removal:"
128+ find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1
117129 - name : Building for linux ...
118130 if : startsWith(matrix.os, 'ubuntu')
119131 run : |
You can’t perform that action at this time.
0 commit comments