Skip to content

Commit a88d8f6

Browse files
committed
Free up disk space to ensure successful execution of jobs
We have recently seen several job failures caused by running out of disk space. This applies the same workaround that we use in Kani.
1 parent 7139219 commit a88d8f6

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/kani-metrics.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17+
- name: Remove unnecessary software to free up disk space
18+
run: |
19+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
20+
df -h
21+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
22+
df -h
23+
1724
- name: Checkout Repository
1825
uses: actions/checkout@v4
1926
with:

.github/workflows/kani.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ jobs:
3737
WORKER_TOTAL: 4
3838

3939
steps:
40+
- name: Remove unnecessary software to free up disk space
41+
if: matrix.os == 'ubuntu-latest'
42+
run: |
43+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
44+
df -h
45+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
46+
df -h
47+
4048
# Step 1: Check out the repository
4149
- name: Checkout Repository
4250
uses: actions/checkout@v4
@@ -69,6 +77,14 @@ jobs:
6977
fail-fast: false
7078

7179
steps:
80+
- name: Remove unnecessary software to free up disk space
81+
if: matrix.os == 'ubuntu-latest'
82+
run: |
83+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
84+
df -h
85+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
86+
df -h
87+
7288
# Step 1: Check out the repository
7389
- name: Checkout Repository
7490
uses: actions/checkout@v4
@@ -164,6 +180,14 @@ jobs:
164180
fail-fast: true
165181

166182
steps:
183+
- name: Remove unnecessary software to free up disk space
184+
if: matrix.os == 'ubuntu-latest'
185+
run: |
186+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
187+
df -h
188+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
189+
df -h
190+
167191
# Step 1: Check out the repository
168192
- name: Checkout Repository
169193
uses: actions/checkout@v4

0 commit comments

Comments
 (0)