Skip to content

Commit 0ff3769

Browse files
committed
gh: Try cleaning up x86 again
1 parent 72aa544 commit 0ff3769

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/build_docker.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency: docker
1010
jobs:
1111
docker:
1212
name: Build Docker image
13-
runs-on: macos-15
13+
runs-on: ubuntu-22.04
1414
strategy:
1515
matrix:
1616
include:
@@ -24,9 +24,23 @@ jobs:
2424
use_cuda: "ON"
2525
tag_suffix: "-cuda12.8"
2626
steps:
27-
- name: Setup Docker on macOS
28-
id: setup-docker
29-
uses: douglascamata/setup-docker-macos-action@v1.0.1
27+
- name: Clean up disk space
28+
if: runner.os == 'Linux'
29+
run: |
30+
# Space usage before cleanup
31+
df -h /
32+
33+
# Remove unused tool caches (comment any required ones with #)
34+
sudo rm -rf /usr/lib/jvm
35+
sudo rm -rf /usr/local/.ghcup
36+
sudo rm -rf /usr/local/lib/android
37+
sudo rm -rf /usr/local/share/powershell
38+
sudo rm -rf /usr/share/dotnet
39+
sudo rm -rf /usr/share/swift
40+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
41+
42+
# Verify gains
43+
df -h /
3044
3145
- name: Extract Docker metadata
3246
id: meta
@@ -41,6 +55,11 @@ jobs:
4155
type=semver,pattern={{major}}.{{minor}}
4256
type=edge
4357
58+
- name: Set up QEMU
59+
uses: docker/setup-qemu-action@v3
60+
with:
61+
platforms: linux/amd64,linux/arm64
62+
4463
- name: Set up Docker Buildx
4564
uses: docker/setup-buildx-action@v3
4665

0 commit comments

Comments
 (0)