Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 196104d

Browse files
authored
ci: free disk space before release bundle build (#119)
Add jlumbroso/free-disk-space step in the release job to reclaim ~20 GB consumed by pre-installed Android SDK, .NET, Haskell and large apt packages that are not needed for the build. Docker images are kept because the builder image is pulled in a later step. This fixes the out-of-disk failures seen when building the one-click release bundle on ubuntu-latest (~14 GB usable by default). Signed-off-by: ls-ggg <[email protected]>
1 parent 890a544 commit 196104d

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/release-one-click.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ jobs:
3232
- name: Checkout
3333
uses: actions/checkout@v4
3434

35+
- name: Free disk space
36+
uses: jlumbroso/free-disk-space@main
37+
with:
38+
tool-cache: false
39+
android: true
40+
dotnet: true
41+
haskell: true
42+
large-packages: true
43+
docker-images: true
44+
swap-storage: true
45+
3546
- name: Compute PVM vmlinux cache metadata
3647
id: pvm_vmlinux_metadata
3748
run: |
@@ -99,6 +110,17 @@ jobs:
99110
with:
100111
fetch-depth: 0
101112

113+
- name: Free disk space
114+
uses: jlumbroso/free-disk-space@main
115+
with:
116+
tool-cache: false
117+
android: true
118+
dotnet: true
119+
haskell: true
120+
large-packages: true
121+
docker-images: false
122+
swap-storage: true
123+
102124
- name: Compute vmlinux cache metadata
103125
id: vmlinux_metadata
104126
run: |

.github/workflows/release-pvm-host-kernel.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ jobs:
3131
- name: Checkout
3232
uses: actions/checkout@v4
3333

34+
- name: Free disk space
35+
uses: jlumbroso/free-disk-space@main
36+
with:
37+
tool-cache: false
38+
android: true
39+
dotnet: true
40+
haskell: true
41+
large-packages: true
42+
docker-images: false
43+
swap-storage: true
44+
3445
- name: Build DEB package
3546
if: matrix.build_mode == 'native'
3647
run: |

0 commit comments

Comments
 (0)