Skip to content

Commit b93abda

Browse files
committed
Free runner disk space before building wheels
The cibuildwheel container shares the runner's 72G root filesystem, and the Rust target dir, the in-container rustup toolchains, and the manylinux image together exhaust it before the wheel test install runs. Dropping the unused Android/dotnet/GHC/Swift toolchains takes free space from 7G to 30G. Verified on 1kbgz/crowdsource-admin, which was failing with 'OSError: [Errno 28] No space left on device'. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
1 parent c2ea129 commit b93abda

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

rust/.github/workflows/build.yaml.jinja

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ jobs:
8383
platforms: all
8484
if: runner.os == 'Linux' && runner.arch == 'X64'
8585

86+
- name: Free disk space
87+
run: |
88+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift
89+
df -h /
90+
shell: bash
91+
if: matrix.os == 'ubuntu-latest'
92+
8693
- name: Make dist (Linux)
8794
run: |
8895
rm -rf dist

rustjswasm/.github/workflows/build.yaml.jinja

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ jobs:
8989
platforms: all
9090
if: runner.os == 'Linux' && runner.arch == 'X64'
9191

92+
- name: Free disk space
93+
run: |
94+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift
95+
df -h /
96+
shell: bash
97+
if: matrix.os == 'ubuntu-latest'
98+
9299
- name: Make dist (Linux)
93100
run: |
94101
rm -rf dist

0 commit comments

Comments
 (0)