Skip to content

Commit 9fdd218

Browse files
committed
1 parent 0a91187 commit 9fdd218

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/node-build.yml

+12
Original file line numberDiff line numberDiff 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/[email protected]
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: |

0 commit comments

Comments
 (0)