Skip to content

Commit 98e39d5

Browse files
[CI] Clean runners up before building dockers
Intel Drivers images were hitting 'No space left on device' error
1 parent 3e751fd commit 98e39d5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/sycl-containers.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ jobs:
5353
tag: latest
5454
build_args: ""
5555
steps:
56+
# Cleanup runner before building containers, as sometimes it
57+
# runs out of space during image build.
58+
- name: Cleanup runner
59+
run: |
60+
echo "Available space before:"
61+
df -hT
62+
63+
rm -rf /opt/hostedtoolcache
64+
rm -rf /usr/share/dotnet/
65+
rm -rf /usr/share/swift
66+
rm -rf /usr/local/graalvm/
67+
sudo rm -rf /usr/local/share/powershell
68+
sudo rm -rf /usr/local/share/chromium
69+
# sudo rm -rf /usr/local/lib/android
70+
71+
echo "Available space after:"
72+
df -hT
5673
- name: Checkout
5774
uses: actions/checkout@v5
5875
with:
@@ -102,6 +119,23 @@ jobs:
102119
base_image=ghcr.io/intel/llvm/ubuntu2404_build
103120
base_tag=latest
104121
steps:
122+
# Cleanup runner before building containers, as sometimes it
123+
# runs out of space during image build.
124+
- name: Cleanup runner
125+
run: |
126+
echo "Available space before:"
127+
df -hT
128+
129+
rm -rf /opt/hostedtoolcache
130+
rm -rf /usr/share/dotnet/
131+
rm -rf /usr/share/swift
132+
rm -rf /usr/local/graalvm/
133+
sudo rm -rf /usr/local/share/powershell
134+
sudo rm -rf /usr/local/share/chromium
135+
# sudo rm -rf /usr/local/lib/android
136+
137+
echo "Available space after:"
138+
df -hT
105139
- name: Checkout
106140
uses: actions/checkout@v5
107141
with:

0 commit comments

Comments
 (0)