Skip to content

Commit da18a7e

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

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/sycl-containers.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,24 @@ 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+
rm -rf /usr/local/share/chromium
69+
rm -rf /usr/local/lib/android
70+
rm -rf /usr/local/lib/node_modules
71+
72+
echo "Available space after:"
73+
df -hT
5674
- name: Checkout
5775
uses: actions/checkout@v5
5876
with:
@@ -102,6 +120,24 @@ jobs:
102120
base_image=ghcr.io/intel/llvm/ubuntu2404_build
103121
base_tag=latest
104122
steps:
123+
# Cleanup runner before building containers, as sometimes it
124+
# runs out of space during image build.
125+
- name: Cleanup runner
126+
run: |
127+
echo "Available space before:"
128+
df -hT
129+
130+
rm -rf /opt/hostedtoolcache
131+
rm -rf /usr/share/dotnet/
132+
rm -rf /usr/share/swift
133+
rm -rf /usr/local/graalvm/
134+
sudo rm -rf /usr/local/share/powershell
135+
rm -rf /usr/local/share/chromium
136+
rm -rf /usr/local/lib/android
137+
rm -rf /usr/local/lib/node_modules
138+
139+
echo "Available space after:"
140+
df -hT
105141
- name: Checkout
106142
uses: actions/checkout@v5
107143
with:

0 commit comments

Comments
 (0)