Skip to content

Commit b82727f

Browse files
authored
Merge pull request #152 from python-project-templates/tkp/free-disk-space-before-dist
Free runner disk space before building wheels
2 parents b2a4844 + b93abda commit b82727f

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)