@@ -190,42 +190,6 @@ jobs:
190190 run : |
191191 ${{ matrix.setup_steps }}
192192
193- - name : Check disk space and memory usage
194- if : ${{ runner.os == 'macOS' }}
195- run : |
196- echo "before purge"
197- df -h
198- pagesize=$(sysctl -n hw.pagesize)
199- vm_stat
200- vm_stat | awk -v ps=$pagesize '
201- /Pages free/ {free=$3}
202- /Pages active/ {active=$3}
203- /Pages inactive/ {inactive=$3}
204- /Pages speculative/ {speculative=$3}
205- /Pages wired/ {wired=$4}
206- END {
207- used=(active+inactive+wired+speculative)*ps/1024/1024;
208- free=free*ps/1024/1024;
209- printf "Used: %.2f MB\nFree: %.2f MB\n", used, free
210- }'
211- ps aux | sort -nrk 4 | head
212- sudo purge
213- echo "after purge"
214- pagesize=$(sysctl -n hw.pagesize)
215- vm_stat
216- vm_stat | awk -v ps=$pagesize '
217- /Pages free/ {free=$3}
218- /Pages active/ {active=$3}
219- /Pages inactive/ {inactive=$3}
220- /Pages speculative/ {speculative=$3}
221- /Pages wired/ {wired=$4}
222- END {
223- used=(active+inactive+wired+speculative)*ps/1024/1024;
224- free=free*ps/1024/1024;
225- printf "Used: %.2f MB\nFree: %.2f MB\n", used, free
226- }'
227-
228-
229193 - name : Free resources on macOS
230194 run : |
231195 echo "Disabling Spotlight indexing..."
@@ -248,7 +212,6 @@ jobs:
248212 working-directory : main
249213 if : ${{ matrix.run_steps && runner.os != 'Windows' }}
250214 run : |
251- env
252215 ${{ matrix.run_steps }}
253216 - name : Run on Windows
254217 working-directory : main
@@ -263,7 +226,6 @@ jobs:
263226 shell : bash
264227 working-directory : main
265228 run : |
266- ls && pwd
267229 tar cf ${{ matrix.provide_artifact[0] }}.tar ${{ matrix.provide_artifact[1] }}
268230 - name : Upload artifacts
269231 if : ${{ matrix.provide_artifact }}
0 commit comments