File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 94
94
"run_e2e_test" : true ,
95
95
"build_hello_wasm" : true ,
96
96
"clean_build_dir" : true ,
97
+ "free_disk_space" : true ,
97
98
"only_swift_sdk" : false ,
98
99
} ,
99
100
{
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121
121
runs-on : ${{ matrix.agent_query }}
122
122
steps :
123
123
- name : Free disk space
124
- if : ${{ matrix.free_disk_space }}
124
+ if : ${{ matrix.free_disk_space && !startsWith(matrix.build_os, 'macos-') }}
125
125
run : |
126
126
df -h
127
127
sudo rm -rf /opt/hostedtoolcache
@@ -133,6 +133,18 @@ jobs:
133
133
fi
134
134
df -h
135
135
136
+ - name : Free disk space by removing unused Xcode
137
+ if : ${{ matrix.free_disk_space && startsWith(matrix.build_os, 'macos-') }}
138
+ run : |
139
+ IN_USE_XCODE=$(xcode-select -p)
140
+ echo "Removing all Xcode installations except $IN_USE_XCODE"
141
+ for xcode in /Applications/Xcode*.app; do
142
+ if [[ $IN_USE_XCODE != "$xcode"* ]]; then
143
+ echo "Removing $xcode"
144
+ rm -rf $xcode
145
+ fi
146
+ done
147
+
136
148
- uses : actions/checkout@v4
137
149
with :
138
150
path : swiftwasm-build
You can’t perform that action at this time.
0 commit comments