|
53 | 53 | tag: latest |
54 | 54 | build_args: "" |
55 | 55 | 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/local/graalvm/ |
| 66 | + rm -rf /usr/local/share/powershell |
| 67 | + rm -rf /usr/local/share/chromium |
| 68 | + rm -rf /usr/local/lib/android |
| 69 | + rm -rf /usr/local/lib/node_modules |
| 70 | +
|
| 71 | + echo "Available space after:" |
| 72 | + df -hT |
56 | 73 | - name: Checkout |
57 | 74 | uses: actions/checkout@v5 |
58 | 75 | with: |
@@ -102,6 +119,23 @@ jobs: |
102 | 119 | base_image=ghcr.io/intel/llvm/ubuntu2404_build |
103 | 120 | base_tag=latest |
104 | 121 | 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/local/graalvm/ |
| 132 | + rm -rf /usr/local/share/powershell |
| 133 | + rm -rf /usr/local/share/chromium |
| 134 | + rm -rf /usr/local/lib/android |
| 135 | + rm -rf /usr/local/lib/node_modules |
| 136 | +
|
| 137 | + echo "Available space after:" |
| 138 | + df -hT |
105 | 139 | - name: Checkout |
106 | 140 | uses: actions/checkout@v5 |
107 | 141 | with: |
|
0 commit comments