Skip to content

Commit c6dbaad

Browse files
committed
ci: free up disk space
1 parent 968838c commit c6dbaad

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,34 @@ jobs:
1515
check:
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Free disk space
19+
run: |
20+
df -h
21+
22+
to_delete=(
23+
"/lib/firefox"
24+
"/lib/google-cloud-sdk"
25+
"/lib/jvm"
26+
"/lib/llvm-16"
27+
"/lib/llvm-17"
28+
"/opt/az"
29+
"/opt/google"
30+
"/opt/hostedtoolcache/CodeQL"
31+
"/opt/hostedtoolcache/PyPy"
32+
"/opt/hostedtoolcache/Ruby"
33+
"/opt/hostedtoolcache/go"
34+
"/opt/hostedtoolcache/node"
35+
"/opt/microsoft"
36+
"/opt/pipx"
37+
"/usr/share/swift"
38+
)
39+
for d in "${to_delete[@]}"; do
40+
echo "delete $d"
41+
sudo rm -rf "$d"
42+
done
43+
44+
df -h
45+
1846
- name: Checkout
1947
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2048
with:

0 commit comments

Comments
 (0)